mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa: when passing emptry mixer control name, force sw volume
This commit is contained in:
parent
237a9e12f8
commit
89f74cb858
1 changed files with 5 additions and 0 deletions
|
|
@ -1107,6 +1107,11 @@ int pa_alsa_find_mixer_and_elem(
|
|||
pa_assert(_m);
|
||||
pa_assert(_e);
|
||||
|
||||
if (control_name && *control_name == 0) {
|
||||
pa_log_debug("Hardware mixer usage disabled because empty control name passed");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((err = snd_mixer_open(&m, 0)) < 0) {
|
||||
pa_log("Error opening mixer: %s", snd_strerror(err));
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue