Accept FS #9021 by James Vasile and apply the fix to the other drivers that have the same issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17630 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
43d02f66a0
commit
825d89fe28
7 changed files with 11 additions and 2 deletions
|
@ -391,6 +391,7 @@ John Kaminar
|
||||||
Joris Goosen
|
Joris Goosen
|
||||||
Mark Ganson
|
Mark Ganson
|
||||||
Davide Gentile
|
Davide Gentile
|
||||||
|
James Vasile
|
||||||
|
|
||||||
|
|
||||||
The libmad team
|
The libmad team
|
||||||
|
|
|
@ -37,7 +37,7 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
||||||
#if defined(HAVE_RECORDING)
|
#ifdef HAVE_RECORDING
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23},
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
||||||
|
|
|
@ -47,7 +47,7 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_MDB_ENABLE] = {"", 0, 1, 0, 1, 0},
|
[SOUND_MDB_ENABLE] = {"", 0, 1, 0, 1, 0},
|
||||||
[SOUND_SUPERBASS] = {"", 0, 1, 0, 1, 0},
|
[SOUND_SUPERBASS] = {"", 0, 1, 0, 1, 0},
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_CODEC == MAS3587F
|
#if CONFIG_CODEC == MAS3587F && defined(HAVE_RECORDING)
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 15, 8},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 15, 8},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 15, 8},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 15, 8},
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 15, 2},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 15, 2},
|
||||||
|
|
|
@ -35,10 +35,12 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23},
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23},
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
static bool is_muted = false;
|
static bool is_muted = false;
|
||||||
/* convert tenth of dB volume to master volume register value */
|
/* convert tenth of dB volume to master volume register value */
|
||||||
|
|
|
@ -33,9 +33,11 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* convert tenth of dB volume (-840..0) to master volume register value */
|
/* convert tenth of dB volume (-840..0) to master volume register value */
|
||||||
|
|
|
@ -38,9 +38,11 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
||||||
|
#endif
|
||||||
[SOUND_BASS_CUTOFF] = {"", 0, 1, 1, 4, 1},
|
[SOUND_BASS_CUTOFF] = {"", 0, 1, 1, 4, 1},
|
||||||
[SOUND_TREBLE_CUTOFF] = {"", 0, 1, 1, 4, 1},
|
[SOUND_TREBLE_CUTOFF] = {"", 0, 1, 1, 4, 1},
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,9 +42,11 @@ const struct sound_settings_info audiohw_settings[] = {
|
||||||
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
[SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
|
||||||
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* convert tenth of dB volume (-730..60) to master volume register value */
|
/* convert tenth of dB volume (-730..60) to master volume register value */
|
||||||
|
|
Loading…
Reference in a new issue