From 38e0ff55cd00afb556f1bcea51543dad4aedfcfc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 16 Feb 2021 15:17:26 +0100 Subject: [PATCH] acp: don't add pro profile for UCM For UCM, we can just as well make a use case in the UCM file. --- 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 3fb4a8ae8..adafd11c9 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -411,7 +411,8 @@ static void add_profiles(pa_card *impl) ap->profile.flags = ACP_PROFILE_OFF; pa_hashmap_put(impl->profiles, ap->name, ap); - add_pro_profile(impl, impl->card.index); + if (!impl->use_ucm) + add_pro_profile(impl, impl->card.index); PA_HASHMAP_FOREACH(ap, impl->profile_set->profiles, state) { pa_alsa_mapping *m;