mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa-mixer: Fix rounding direction on mixer initialisation
This commit is contained in:
parent
8ace9185aa
commit
0b5a181e1b
1 changed files with 2 additions and 2 deletions
|
|
@ -1175,7 +1175,7 @@ static int element_set_constant_volume(pa_alsa_element *e, snd_mixer_t *m) {
|
|||
if (e->db_fix) {
|
||||
long dB = 0;
|
||||
|
||||
volume = decibel_fix_get_step(e->db_fix, &dB, +1);
|
||||
volume = decibel_fix_get_step(e->db_fix, &dB, (e->direction == PA_ALSA_DIRECTION_OUTPUT ? +1 : -1));
|
||||
volume_set = TRUE;
|
||||
}
|
||||
break;
|
||||
|
|
@ -1201,7 +1201,7 @@ static int element_set_constant_volume(pa_alsa_element *e, snd_mixer_t *m) {
|
|||
if (e->direction == PA_ALSA_DIRECTION_OUTPUT)
|
||||
r = snd_mixer_selem_set_playback_dB_all(me, 0, +1);
|
||||
else
|
||||
r = snd_mixer_selem_set_capture_dB_all(me, 0, +1);
|
||||
r = snd_mixer_selem_set_capture_dB_all(me, 0, -1);
|
||||
}
|
||||
|
||||
if (r < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue