mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
alsa: Fix log output to inform about positive base volumes correctly.
This fix was done for _set_port_cb() already, but the first fix didn't fix setup_mixer(). Now that's done too.
This commit is contained in:
parent
5d43aba3d5
commit
b14f0d79f6
2 changed files with 2 additions and 8 deletions
|
|
@ -1724,10 +1724,7 @@ static int setup_mixer(struct userdata *u, pa_bool_t ignore_dB, pa_bool_t sync_v
|
|||
u->sink->base_volume = pa_sw_volume_from_dB(-u->mixer_path->max_dB);
|
||||
u->sink->n_volume_steps = PA_VOLUME_NORM+1;
|
||||
|
||||
if (u->mixer_path->max_dB > 0.0)
|
||||
pa_log_info("Fixing base volume to %0.2f dB", pa_sw_volume_to_dB(u->sink->base_volume));
|
||||
else
|
||||
pa_log_info("No particular base volume set, fixing to 0 dB");
|
||||
pa_log_info("Fixing base volume to %0.2f dB", pa_sw_volume_to_dB(u->sink->base_volume));
|
||||
|
||||
} else {
|
||||
pa_log_info("Hardware volume ranges from %li to %li.", u->mixer_path->min_volume, u->mixer_path->max_volume);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue