From be177138d381d3bb23feb51d600ecfe3727f19ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 26 Apr 2010 23:26:08 +0000 Subject: as3514: detail bit of AS3543_DAC_IF it lets you select internal PLL or external MCLK and is not related to mute git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25731 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/as3514.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'firmware/drivers/audio') diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index a996610..d9ff94a 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -190,7 +190,7 @@ void audiohw_preinit(void) #endif #ifdef HAVE_AS3543 - as3514_clear(AS3543_DAC_IF, 0x80); + as3514_write(AS3543_DAC_IF, AS3543_DAC_INT_PLL); as3514_set(AS3514_LINE_IN1_R, LINE_IN_R_LINE_SELECT); /* Line 2 */ #else /* Mute and disable speaker */ @@ -284,15 +284,9 @@ void audiohw_mute(bool mute) { if (mute) { as3514_set(AS3514_HPH_OUT_L, HPH_OUT_L_HP_MUTE); -#ifdef HAVE_AS3543 - as3514_set(AS3543_DAC_IF, 0x80); -#endif } else { as3514_clear(AS3514_HPH_OUT_L, HPH_OUT_L_HP_MUTE); -#ifdef HAVE_AS3543 - as3514_clear(AS3543_DAC_IF, 0x80); -#endif } } @@ -313,10 +307,6 @@ void audiohw_close(void) as3514_clear(AS3514_HPH_OUT_L, HPH_OUT_L_HP_ON); as3514_write(AS3514_AUDIOSET1, 0x0); -#ifdef HAVE_AS3543 - as3514_set(AS3543_DAC_IF, 0x80); -#endif - /* Allow caps to discharge */ sleep(HZ/4); } -- cgit v1.1