This tunes the volume control of maestro sound boards: The log
conversion seems not good for PCM and CD. The volume buttons
incrementing / decrementing the main volume by 10 on 100 is too much,
much better set it to 5.
left = (left * mh->scale) / 100;
if ((left == 0) && (right == 0))
val |= 0x8000;
+ } else if (mixer == SOUND_MIXER_PCM || mixer == SOUND_MIXER_CD) {
+ /* log conversion seems bad for them */
+ if ((left == 0) && (right == 0))
+ val = 0x8000;
+ right = ((100 - right) * mh->scale) / 100;
+ left = ((100 - left) * mh->scale) / 100;
} else {
/* log conversion for the stereo controls */
if((left == 0) && (right == 0))
manner by adjusting the master mixer volume. */
volume = c->mix.mixer_state[0] & 0xff;
if (vol_evt == UP_EVT) {
- volume += 10;
+ volume += 5;
if (volume > 100)
volume = 100;
}
else if (vol_evt == DOWN_EVT) {
- volume -= 10;
+ volume -= 5;
if (volume < 0)
volume = 0;
} else {