From 023cd578fad93a299424cf38bc85a64d0865decc Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 31 May 2008 08:31:46 +0000 Subject: Commit FS#9024 - apply proper line-in gain for h10's radio by Przemyslaw Holubowski with one change: make "0x1e" "0x1f" since that's actually +12dB. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17665 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/audio-pp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c index 121203a317..8599fde4f1 100644 --- a/firmware/target/arm/audio-pp.c +++ b/firmware/target/arm/audio-pp.c @@ -79,10 +79,13 @@ void audio_input_mux(int source, unsigned flags) #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) /* Switch line in source to tuner */ GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x04); -#endif /* Set line-in vol to 0dB*/ + /* Set line-in vol to +12dB, which is proper for H10's */ + if (!recording) + audiohw_set_recvol(0x1f, 0x1f, AUDIO_GAIN_LINEIN); +#else /* Set line-in vol to 0dB*/ if (!recording) audiohw_set_recvol(0x17, 0x17, AUDIO_GAIN_LINEIN); - +#endif if (source == last_source && recording == last_recording) break; -- cgit v1.2.3