summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-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 f14890d..97e4bf9 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -145,7 +145,12 @@ void audiohw_preinit(void)
wm8975_write(DAPCTRL, wm8975_regs[DAPCTRL] );
+/* Still need to find out why this is neccessary */
+#ifdef IPOD_NANO2G
+ wmcodec_write(SAMPCTRL, 0);
+#else
wmcodec_write(SAMPCTRL, WM8975_44100HZ);
+#endif
/* set the volume to -6dB */
wmcodec_write(LOUT1VOL, LOUT1VOL_LO1ZC | IPOD_PCM_LEVEL);