diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-08-01 17:51:00 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-08-01 17:51:00 +0000 |
commit | fc570147e66b91686aeffdf9896eb209027cf9ca (patch) | |
tree | b462ec064ef0a6e7c05dd5fd287448de0a17cfe0 /firmware/drivers | |
parent | 4e7517dfb1946ad8e7cbc626db2252d04dee629b (diff) | |
download | rockbox-fc570147e66b91686aeffdf9896eb209027cf9ca.tar.gz rockbox-fc570147e66b91686aeffdf9896eb209027cf9ca.zip |
Philips SA9200: initialize i2c, i2s, and as3514 as the OF does. Fixes clicks/pops heard when reading the adc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index dc6efb511a..b7c99f433b 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c | |||
@@ -182,8 +182,13 @@ void audiohw_preinit(void) | |||
182 | as3514_write(AS3514_HPH_OUT_L, | 182 | as3514_write(AS3514_HPH_OUT_L, |
183 | HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00); | 183 | HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00); |
184 | 184 | ||
185 | #ifdef PHILIPS_SA9200 | ||
186 | /* LRCK 8-23kHz (there are audible clicks while reading the ADC otherwise) */ | ||
187 | as3514_write(AS3514_PLLMODE, PLLMODE_LRCK_8_23); | ||
188 | #else | ||
185 | /* LRCK 24-48kHz */ | 189 | /* LRCK 24-48kHz */ |
186 | as3514_write(AS3514_PLLMODE, PLLMODE_LRCK_24_48); | 190 | as3514_write(AS3514_PLLMODE, PLLMODE_LRCK_24_48); |
191 | #endif | ||
187 | 192 | ||
188 | /* DAC_Mute_off */ | 193 | /* DAC_Mute_off */ |
189 | as3514_set(AS3514_DAC_L, DAC_L_DAC_MUTE_off); | 194 | as3514_set(AS3514_DAC_L, DAC_L_DAC_MUTE_off); |