summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-20 22:46:58 +0000
committerDave Chapman <dave@dchapman.com>2006-02-20 22:46:58 +0000
commit800023bc4e5468f89479556ded3afe96a226ca2b (patch)
treeb263a4d9755d754adba3a4a32d0ed88ea1160a34 /firmware
parent831cfb8e44c7690d77ddae03e680cf01881bed5b (diff)
iPod 5G: Bug fixes in DAC initialisation - playback is now stereo...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8755 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/wm8758.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/wm8758.c b/firmware/drivers/wm8758.c
index 3069b3cba7..ea670230b9 100644
--- a/firmware/drivers/wm8758.c
+++ b/firmware/drivers/wm8758.c
@@ -120,6 +120,8 @@ void wmcodec_enable_output(bool enable)
/* reset the I2S controller into known state */
i2s_reset();
+ /* TODO: Review the power-up sequence to prevent pops */
+
wm8758_write(RESET, 0x1ff); /*Reset*/
wm8758_write(PWRMGMT1, 0x2b);
@@ -129,7 +131,7 @@ void wmcodec_enable_output(bool enable)
wm8758_write(AINTFCE, 0x10);
wm8758_write(CLKCTRL, 0x49);
- wm8758_write(OUTCTRL, 1 | (0x3 << 5));
+ wm8758_write(OUTCTRL, 1);
/* The iPod can handle multiple frequencies, but fix at 44.1KHz
for now */
@@ -248,7 +250,7 @@ void wmcodec_set_sample_rate(int sampling_control)
wm8758_write(PLLK3, 0x26);
/* set clock div */
- wm8758_write(CLKCTRL, 1 | (0 << 2) | (2 << 5) | (1 << 8));
+ wm8758_write(CLKCTRL, 1 | (1 << 2) | (2 << 5) | (1 << 8));
/* set srate */
wm8758_write(SRATECTRL, (0 << 1));