mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -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
|
|
@ -730,7 +730,7 @@ static void command_request(pa_pdispatch *pd, uint32_t command, uint32_t tag, p
|
|||
}
|
||||
|
||||
if (channel != u->channel) {
|
||||
pa_log("Recieved data for invalid channel");
|
||||
pa_log("Received data for invalid channel");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
@ -1157,10 +1157,10 @@ static void sink_input_info_cb(pa_pdispatch *pd, uint32_t command, uint32_t tag
|
|||
pa_cvolume_equal(&volume, &u->sink->virtual_volume))
|
||||
return;
|
||||
|
||||
pa_sink_volume_changed(u->sink, &volume);
|
||||
pa_sink_volume_changed(u->sink, &volume, FALSE);
|
||||
|
||||
if (u->version >= 11)
|
||||
pa_sink_mute_changed(u->sink, mute);
|
||||
pa_sink_mute_changed(u->sink, mute, FALSE);
|
||||
|
||||
return;
|
||||
|
||||
|
|
@ -1675,7 +1675,7 @@ static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t o
|
|||
pa_assert(u);
|
||||
|
||||
if (channel != u->channel) {
|
||||
pa_log("Recieved memory block on bad channel.");
|
||||
pa_log("Received memory block on bad channel.");
|
||||
pa_module_unload_request(u->module, TRUE);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue