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
This commit is contained in:
Michael Sevakis 2008-05-31 08:31:46 +00:00
parent e0a6a70b99
commit 023cd578fa

View file

@ -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;