forked from len0rd/rockbox
Patch #1403437 by Peter D'Hoye & Martin Scarratt: Recording gain.
Changes: ***1. all platforms: 1.1 corrects gain display bug; 1.2 allows combined setting of stereo gain without an extra line on the display; 2. iRiver H1xx and H3xx specific: 2.1 correctly named the decimator variables, they were called 'gain'; 2.2 splitted decimator gain settings for mic and line-in so that they are saved separately; 2.3 added combined analog and decimator gain setting giving a smooth gain range with the best analog/decimator gain combination git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8627 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dcc9a8a3d8
commit
db734b41d5
10 changed files with 456 additions and 125 deletions
|
|
@ -97,8 +97,8 @@ static const struct sound_settings_info sound_settings_table[] = {
|
|||
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 8, 8, NULL},
|
||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 8, 8, NULL},
|
||||
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 15, 2, NULL},
|
||||
[SOUND_ADC_LEFT_GAIN] = {"dB", 1, 1,-128, 48, 0, NULL},
|
||||
[SOUND_ADC_RIGHT_GAIN]= {"dB", 1, 1,-128, 48, 0, NULL},
|
||||
[SOUND_DECIMATOR_LEFT_GAIN] = {"dB", 1, 1,-128, 48, 0, NULL},
|
||||
[SOUND_DECIMATOR_RIGHT_GAIN]= {"dB", 1, 1,-128, 48, 0, NULL},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
@ -762,8 +762,8 @@ int sound_val2phys(int setting, int value)
|
|||
result = value * 20; /* (30/15) *10 */
|
||||
break;
|
||||
|
||||
case SOUND_ADC_LEFT_GAIN:
|
||||
case SOUND_ADC_RIGHT_GAIN:
|
||||
case SOUND_DECIMATOR_LEFT_GAIN:
|
||||
case SOUND_DECIMATOR_RIGHT_GAIN:
|
||||
result = value * 5; /* (1/2) *10 */
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue