mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
alsa-mixer: Implement a new path option: "mute-during-activation".
This commit is contained in:
parent
ea064162a5
commit
8417cac4f6
5 changed files with 40 additions and 8 deletions
|
|
@ -1364,7 +1364,7 @@ static int source_set_port_cb(pa_source *s, pa_device_port *p) {
|
|||
data = PA_DEVICE_PORT_DATA(p);
|
||||
|
||||
pa_assert_se(u->mixer_path = data->path);
|
||||
pa_alsa_path_select(u->mixer_path, u->mixer_handle);
|
||||
pa_alsa_path_select(u->mixer_path, u->mixer_handle, s->muted);
|
||||
|
||||
mixer_volume_init(u);
|
||||
|
||||
|
|
@ -1642,7 +1642,7 @@ static int setup_mixer(struct userdata *u, pa_bool_t ignore_dB) {
|
|||
data = PA_DEVICE_PORT_DATA(u->source->active_port);
|
||||
u->mixer_path = data->path;
|
||||
|
||||
pa_alsa_path_select(data->path, u->mixer_handle);
|
||||
pa_alsa_path_select(data->path, u->mixer_handle, u->source->muted);
|
||||
|
||||
if (data->setting)
|
||||
pa_alsa_setting_select(data->setting, u->mixer_handle);
|
||||
|
|
@ -1655,7 +1655,7 @@ static int setup_mixer(struct userdata *u, pa_bool_t ignore_dB) {
|
|||
if (u->mixer_path) {
|
||||
/* Hmm, we have only a single path, then let's activate it */
|
||||
|
||||
pa_alsa_path_select(u->mixer_path, u->mixer_handle);
|
||||
pa_alsa_path_select(u->mixer_path, u->mixer_handle, u->source->muted);
|
||||
|
||||
if (u->mixer_path->settings)
|
||||
pa_alsa_setting_select(u->mixer_path->settings, u->mixer_handle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue