mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
alsa: rework mixer logic
Completely rework mixer logic. This now allows controlling a full set of elements from a single sink's volume slider/mute button. This also introduces sink and source "ports" that can be used to choose different input or output ports with the UI. (i.e. "mic"/"line-in" or "speaker"/"headphones". The mixer paths and device maps are now configered in external configuration files and can be tweaked as necessary.
This commit is contained in:
parent
e9c70ac41b
commit
31575f7766
54 changed files with 7029 additions and 1694 deletions
|
|
@ -109,7 +109,7 @@ static void update_volume(struct userdata *u) {
|
|||
}
|
||||
|
||||
pa_log_info("Found %u BT devices, unmuting.", u->n_found);
|
||||
pa_sink_set_mute(s, FALSE);
|
||||
pa_sink_set_mute(s, FALSE, FALSE);
|
||||
|
||||
} else if (!u->muted && (u->n_found+u->n_unknown) <= 0) {
|
||||
pa_sink *s;
|
||||
|
|
@ -122,7 +122,7 @@ static void update_volume(struct userdata *u) {
|
|||
}
|
||||
|
||||
pa_log_info("No BT devices found, muting.");
|
||||
pa_sink_set_mute(s, TRUE);
|
||||
pa_sink_set_mute(s, TRUE, FALSE);
|
||||
|
||||
} else
|
||||
pa_log_info("%u devices now active, %u with unknown state.", u->n_found, u->n_unknown);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue