mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
alsa-mixer: Fix indentation
This commit is contained in:
parent
af42b3eb6f
commit
a863b5795a
1 changed files with 24 additions and 24 deletions
|
|
@ -4288,34 +4288,34 @@ static void mapping_group_available(pa_hashmap *paths)
|
||||||
const char *found = NULL;
|
const char *found = NULL;
|
||||||
bool has_control = false;
|
bool has_control = false;
|
||||||
PA_LLIST_FOREACH(j, p->jacks) {
|
PA_LLIST_FOREACH(j, p->jacks) {
|
||||||
if (!j->has_control || j->state_plugged == PA_AVAILABLE_NO)
|
if (!j->has_control || j->state_plugged == PA_AVAILABLE_NO)
|
||||||
continue;
|
continue;
|
||||||
has_control = true;
|
has_control = true;
|
||||||
PA_HASHMAP_FOREACH(p2, paths, state2) {
|
PA_HASHMAP_FOREACH(p2, paths, state2) {
|
||||||
if (p2 == p)
|
if (p2 == p)
|
||||||
break;
|
break;
|
||||||
PA_LLIST_FOREACH(j2, p2->jacks) {
|
PA_LLIST_FOREACH(j2, p2->jacks) {
|
||||||
if (!j2->has_control || j2->state_plugged == PA_AVAILABLE_NO)
|
if (!j2->has_control || j2->state_plugged == PA_AVAILABLE_NO)
|
||||||
continue;
|
continue;
|
||||||
if (pa_streq(j->name, j2->name)) {
|
if (pa_streq(j->name, j2->name)) {
|
||||||
j->state_plugged = PA_AVAILABLE_UNKNOWN;
|
j->state_plugged = PA_AVAILABLE_UNKNOWN;
|
||||||
j2->state_plugged = PA_AVAILABLE_UNKNOWN;
|
j2->state_plugged = PA_AVAILABLE_UNKNOWN;
|
||||||
found = p2->availability_group;
|
found = p2->availability_group;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (found)
|
if (found)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!has_control)
|
if (!has_control)
|
||||||
continue;
|
continue;
|
||||||
if (!found) {
|
if (!found) {
|
||||||
p->availability_group = pa_sprintf_malloc("Legacy %d", num);
|
p->availability_group = pa_sprintf_malloc("Legacy %d", num);
|
||||||
} else {
|
} else {
|
||||||
p->availability_group = pa_xstrdup(found);
|
p->availability_group = pa_xstrdup(found);
|
||||||
}
|
}
|
||||||
if (!found)
|
if (!found)
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue