diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-10-16 10:48:16 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-10-16 10:48:16 +0000 |
commit | 1d1a17c0dbd0fdf2857c5d1636713247d28f1762 (patch) | |
tree | 863d40550a3f6da5406d65471b3593bde9f9d8d5 /firmware/target/arm/wmcodec-pp.c | |
parent | 8b44601a7c306611b9aba29a7774708585c97539 (diff) |
Improved H10 ADC driver. We now do things exactly as the OF does. This includes shifting the readings by 0x14 when PLL is enabled. Battery voltages and remote/scrollpad values adjusted accordingly. We also now wait for the ADC to indicate the conversion is complete before reading the data, so hopefully we will get more reliably steady readings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/wmcodec-pp.c')
-rw-r--r-- | firmware/target/arm/wmcodec-pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c index a2c83f33b3..3dd00695ae 100644 --- a/firmware/target/arm/wmcodec-pp.c +++ b/firmware/target/arm/wmcodec-pp.c @@ -46,7 +46,7 @@ void audiohw_init(void) { #ifdef CPU_PP502x /* normal outputs for CDI and I2S pin groups */ - DEV_INIT &= ~0x300; + DEV_INIT2 &= ~0x300; /*mini2?*/ outl(inl(0x70000010) & ~0x3000000, 0x70000010); |