From d636cadbb8211f2806a5c268c74434a1426ed11a Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Wed, 9 Dec 2020 22:06:06 +0100 Subject: [PATCH] acp: alsa-ucm: Print iterated path name instead of current path data->path (current path for selected profile) is not set yet here resulting in segfaults. We are not interested in printing that anyway but instead care about the iterated `path` from data->paths. --- spa/plugins/alsa/acp/alsa-ucm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/alsa/acp/alsa-ucm.c b/spa/plugins/alsa/acp/alsa-ucm.c index 805849c23..246390b6b 100644 --- a/spa/plugins/alsa/acp/alsa-ucm.c +++ b/spa/plugins/alsa/acp/alsa-ucm.c @@ -949,10 +949,10 @@ static void probe_volumes(pa_hashmap *hash, bool is_sink, snd_pcm_t *pcm_handle, PA_HASHMAP_FOREACH_KV(profile, path, data->paths, state2) { if (pa_alsa_path_probe(path, NULL, mixer_handle, ignore_dB) < 0) { - pa_log_warn("Could not probe path: %s, using s/w volume", data->path->name); + pa_log_warn("Could not probe path: %s, using s/w volume", path->name); pa_hashmap_remove(data->paths, profile); } else if (!path->has_volume) { - pa_log_warn("Path %s is not a volume control", data->path->name); + pa_log_warn("Path %s is not a volume control", path->name); pa_hashmap_remove(data->paths, profile); } else pa_log_debug("Set up h/w volume using '%s' for %s:%s", path->name, profile, port->name);