diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-31 01:38:44 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-31 01:38:44 +0000 |
| commit | 2e99b3d9318dbc98c242c9ddbbf23d2fcc5bf2bd (patch) | |
| tree | 53587fff24b5da8c717cf2e052e16942501a78c4 /firmware/sound.c | |
| parent | 9ac7af749bceb67916b3179a3b7c7eee6ee6443a (diff) | |
| download | rockbox-2e99b3d9318dbc98c242c9ddbbf23d2fcc5bf2bd.zip rockbox-2e99b3d9318dbc98c242c9ddbbf23d2fcc5bf2bd.tar.gz rockbox-2e99b3d9318dbc98c242c9ddbbf23d2fcc5bf2bd.tar.bz2 rockbox-2e99b3d9318dbc98c242c9ddbbf23d2fcc5bf2bd.tar.xz | |
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
Diffstat (limited to 'firmware/sound.c')
| -rw-r--r-- | firmware/sound.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index 60ec1a4..5125782 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -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) { @@ -708,6 +708,24 @@ int sound_val2phys(int setting, int value) } 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; return value; |