alsa-mixer: Fix indentation

This commit is contained in:
Tanu Kaskinen 2020-08-10 20:56:43 +03:00
parent af42b3eb6f
commit a863b5795a

View file

@ -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++;
} }
} }