mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa-mixer: Fix a small issue when detecting required-any
If somebody writes the line "required-any=ignore", that shouldn't mean a required-any element needs to be present for the path to succeed probing. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
2577cc81b3
commit
f1a36e84a7
1 changed files with 3 additions and 3 deletions
|
|
@ -1999,15 +1999,15 @@ static int element_parse_required(
|
|||
else if (pa_streq(lvalue, "required-any")) {
|
||||
if (e) {
|
||||
e->required_any = req;
|
||||
e->path->has_req_any = TRUE;
|
||||
e->path->has_req_any |= (req != PA_ALSA_REQUIRED_IGNORE);
|
||||
}
|
||||
if (o) {
|
||||
o->required_any = req;
|
||||
o->element->path->has_req_any = TRUE;
|
||||
o->element->path->has_req_any |= (req != PA_ALSA_REQUIRED_IGNORE);
|
||||
}
|
||||
if (j) {
|
||||
j->required_any = req;
|
||||
j->path->has_req_any = TRUE;
|
||||
j->path->has_req_any |= (req != PA_ALSA_REQUIRED_IGNORE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue