From fc570147e66b91686aeffdf9896eb209027cf9ca Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Sat, 1 Aug 2009 17:51:00 +0000 Subject: 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 --- firmware/drivers/audio/as3514.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/drivers/audio/as3514.c') 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) as3514_write(AS3514_HPH_OUT_L, HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00); +#ifdef PHILIPS_SA9200 + /* LRCK 8-23kHz (there are audible clicks while reading the ADC otherwise) */ + as3514_write(AS3514_PLLMODE, PLLMODE_LRCK_8_23); +#else /* LRCK 24-48kHz */ as3514_write(AS3514_PLLMODE, PLLMODE_LRCK_24_48); +#endif /* DAC_Mute_off */ as3514_set(AS3514_DAC_L, DAC_L_DAC_MUTE_off); -- cgit v1.2.3