mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
acp: fixup impossible decibel ranges
This commit is contained in:
parent
4e9b81960f
commit
477d6e0b7f
1 changed files with 4 additions and 0 deletions
|
|
@ -3134,6 +3134,10 @@ int pa_alsa_path_probe(pa_alsa_path *p, pa_alsa_mapping *mapping, snd_mixer_t *m
|
|||
p->max_dB = max_dB[t];
|
||||
}
|
||||
}
|
||||
if (p->min_dB == INFINITY)
|
||||
p->min_dB = -INFINITY;
|
||||
if (p->max_dB == -INFINITY)
|
||||
p->max_dB = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue