From 6144d037ce08d338caa00bcd28246109444c86d2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 3 Aug 2022 12:34:13 +0200 Subject: [PATCH] acp: handle NULL mixer_handle It can be NULL for some UCM configs. Fixes #2612 --- spa/plugins/alsa/acp/acp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index 39475baf5..452aa60ab 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -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);