1
0
Fork 0
forked from len0rd/rockbox

Gigabeat S: Allow recording from FM. Give FM the same volume range as playback. NOTE: This bumps the si4700 output volume to -0dB so other players with that may need a minor adjustment.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19619 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-31 01:38:44 +00:00
parent 9ac7af749b
commit 2e99b3d931
10 changed files with 454 additions and 166 deletions

View file

@ -629,7 +629,7 @@ void sound_set(int setting, int value)
#if (!defined(HAVE_AS3514) && !defined(HAVE_WM8975) \
&& !defined(HAVE_WM8758) && !defined(HAVE_TSC2100) \
&& !defined (HAVE_WM8711) && !defined (HAVE_WM8721) \
&& !defined (HAVE_WM8731)) \
&& !defined (HAVE_WM8731) && !defined (HAVE_WM8978)) \
|| defined(SIMULATOR)
int sound_val2phys(int setting, int value)
{
@ -707,6 +707,24 @@ int sound_val2phys(int setting, int value)
break;
}
return result;
#elif defined(HAVE_WM8978)
int result;
switch (setting)
{
#ifdef HAVE_RECORDING
case SOUND_LEFT_GAIN:
case SOUND_RIGHT_GAIN:
case SOUND_MIC_GAIN:
result = value * 5;
break;
#endif
default:
result = value;
}
return result;
#else
(void)setting;