summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/pcm1792.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2013-11-05 11:10:07 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2013-11-05 13:34:52 +0400
commit357dd680b404cf5e749e315436db8e056bd2bc65 (patch)
treee0fed7b0921fa1c10c71375428d0d8672f741dfe /firmware/drivers/audio/pcm1792.c
parenta7fa7b902e0471faad3d707944112ff4d56575f6 (diff)
downloadrockbox-357dd680b404cf5e749e315436db8e056bd2bc65.tar.gz
rockbox-357dd680b404cf5e749e315436db8e056bd2bc65.zip
ma8/ma9: Cleanup - fix tabs, remove unused defines.
Diffstat (limited to 'firmware/drivers/audio/pcm1792.c')
-rw-r--r--firmware/drivers/audio/pcm1792.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/drivers/audio/pcm1792.c b/firmware/drivers/audio/pcm1792.c
index 67237a920a..a048d07eb3 100644
--- a/firmware/drivers/audio/pcm1792.c
+++ b/firmware/drivers/audio/pcm1792.c
@@ -84,24 +84,24 @@ static int vol_tenthdb2hw(const int tdb)
84 84
85void audiohw_init(void) 85void audiohw_init(void)
86{ 86{
87 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE); 87 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE);
88 pcm1792_write_reg(PCM1792_REG(19), REG19_INIT_VALUE); 88 pcm1792_write_reg(PCM1792_REG(19), REG19_INIT_VALUE);
89 pcm1792_write_reg(PCM1792_REG(20), REG20_INIT_VALUE); 89 pcm1792_write_reg(PCM1792_REG(20), REG20_INIT_VALUE);
90 pcm1792_write_reg(PCM1792_REG(21), REG21_INIT_VALUE); 90 pcm1792_write_reg(PCM1792_REG(21), REG21_INIT_VALUE);
91 91
92 /* Left & Right volumes */ 92 /* Left & Right volumes */
93 pcm1792_write_reg(PCM1792_REG(16), 0xff); 93 pcm1792_write_reg(PCM1792_REG(16), 0xff);
94 pcm1792_write_reg(PCM1792_REG(17), 0xff); 94 pcm1792_write_reg(PCM1792_REG(17), 0xff);
95} 95}
96 96
97void audiohw_mute(void) 97void audiohw_mute(void)
98{ 98{
99 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE|PCM1792_MUTE_ON); 99 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE|PCM1792_MUTE_ON);
100} 100}
101 101
102void audiohw_unmute(void) 102void audiohw_unmute(void)
103{ 103{
104 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE); 104 pcm1792_write_reg(PCM1792_REG(18), REG18_INIT_VALUE);
105} 105}
106 106
107void audiohw_preinit(void) 107void audiohw_preinit(void)