summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio')
-rw-r--r--firmware/drivers/audio/wm8975.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c
index f14890db74..97e4bf9255 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -145,7 +145,12 @@ void audiohw_preinit(void)
145 145
146 wm8975_write(DAPCTRL, wm8975_regs[DAPCTRL] ); 146 wm8975_write(DAPCTRL, wm8975_regs[DAPCTRL] );
147 147
148/* Still need to find out why this is neccessary */
149#ifdef IPOD_NANO2G
150 wmcodec_write(SAMPCTRL, 0);
151#else
148 wmcodec_write(SAMPCTRL, WM8975_44100HZ); 152 wmcodec_write(SAMPCTRL, WM8975_44100HZ);
153#endif
149 154
150 /* set the volume to -6dB */ 155 /* set the volume to -6dB */
151 wmcodec_write(LOUT1VOL, LOUT1VOL_LO1ZC | IPOD_PCM_LEVEL); 156 wmcodec_write(LOUT1VOL, LOUT1VOL_LO1ZC | IPOD_PCM_LEVEL);