acp: handle NULL mixer_handle

It can be NULL for some UCM configs.

Fixes #2612
This commit is contained in:
Wim Taymans 2022-08-03 12:34:13 +02:00
parent e22e522ab8
commit 6144d037ce

View file

@ -1735,7 +1735,8 @@ static void sync_mixer(pa_alsa_device *d, pa_device_port *port)
setting = data->setting;
}
pa_alsa_path_select(d->mixer_path, setting, d->mixer_handle, d->muted);
if (d->mixer_handle)
pa_alsa_path_select(d->mixer_path, setting, d->mixer_handle, d->muted);
if (d->set_mute)
d->set_mute(d, d->muted);