diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-10-25 09:15:31 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-10-25 09:15:31 +0000 |
commit | 3461027f2672559dcb2a56b62de149633bbbc169 (patch) | |
tree | a29676dcb8a77d91605e3d4fff4ad7c0b53ae9eb /firmware/drivers/audio | |
parent | 007563c93d6a00300323cff47f1a7fc30f94a890 (diff) |
FS#8022: AS3514 missing initialisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); |