acp: don't add pro profile for UCM

For UCM, we can just as well make a use case in the UCM file.
This commit is contained in:
Wim Taymans 2021-02-16 15:17:26 +01:00
parent ca10c6470f
commit 38e0ff55cd

View file

@ -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;