summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-05-13 15:18:35 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-05-13 15:18:35 +0000
commitf04e85a92ab6f5a8584350faa72771b2acb92a40 (patch)
tree2d51b447d58fba80ef4a375828b3eab8934ec0ad /firmware
parent98b7229d7e4ba385fb26000e0795b2f848c31611 (diff)
downloadrockbox-f04e85a92ab6f5a8584350faa72771b2acb92a40.tar.gz
rockbox-f04e85a92ab6f5a8584350faa72771b2acb92a40.zip
enable lineIn1 - lets hope FM chip is connected to lineIn 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13378 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/as3514.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 3490abdd2d..0fe8d90b11 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -105,10 +105,12 @@ int audiohw_init(void)
i2s_reset();
/* Set ADC off, mixer on, DAC on, line out off, line in off, mic off */
- as3514_write(AUDIOSET1, 0x20); /* Turn on DAC */
+ as3514_write(AUDIOSET1, 0x64); /* Turn on SUM, DAC, LineIn 1 */
as3514_write(AUDIOSET3, 0x5); /* Set HPCM off, ZCU off*/
as3514_write(HPH_OUT_R, 0xc0 | 0x16); /* set vol and set speaker over-current to 0 */
as3514_write(HPH_OUT_L, 0x16); /* set default vol for headphone */
+ as3514_write(LINE_IN1_R, 0x36); /* unmute lineIn 1 and set gain */
+ as3514_write(LINE_IN1_L, 0x36); /* unmute lineIn 1 and set gain */
as3514_write(PLLMODE, 0x04);
/* read all reg values */