From 3461027f2672559dcb2a56b62de149633bbbc169 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Thu, 25 Oct 2007 09:15:31 +0000 Subject: FS#8022: AS3514 missing initialisation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15298 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/as3514.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index 7e101d7df3..bc6705caf2 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -164,10 +164,17 @@ void audiohw_init(void) /* Turn on SUM, DAC */ as3514_write(AUDIOSET1, (1 << 6) | (1 << 5)); + /* Set BIAS on, DITH on, AGC on, IBR_DAC max, LSP_LP on, IBR_LSP min */ + as3514_write(AUDIOSET2, (1 << 2) | (3 << 0)); + /* Set HPCM off, ZCU off*/ as3514_write(AUDIOSET3, (1 << 2) | (1 << 0)); - /* set vol and set speaker over-current to 0 */ + /* Mute and disable speaker */ + as3514_write(LSP_OUT_R, 0); + as3514_write(LSP_OUT_L, (1 << 7)); + + /* set vol and set headphone over-current to 0 */ as3514_write(HPH_OUT_R, (0x3 << 6) | 0x16); /* set default vol for headphone */ as3514_write(HPH_OUT_L, 0x16); -- cgit v1.2.3