From 2eaac9b67ad4d002537d88298e0403eae1df4f56 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 3 Jan 2023 13:13:03 +0100 Subject: [PATCH] acp: mark the Pro profile with a flag --- spa/plugins/alsa/acp/acp.c | 1 + spa/plugins/alsa/acp/acp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index 3481770ae..7be82f37b 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -322,6 +322,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index) ap->profile.name = ap->name = pa_xstrdup("pro-audio"); ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio")); ap->profile.available = ACP_AVAILABLE_YES; + ap->profile.flags = ACP_PROFILE_PRO; ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func); ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func); pa_hashmap_put(ps->profiles, ap->name, ap); diff --git a/spa/plugins/alsa/acp/acp.h b/spa/plugins/alsa/acp/acp.h index b61ad7200..3fed6f6e1 100644 --- a/spa/plugins/alsa/acp/acp.h +++ b/spa/plugins/alsa/acp/acp.h @@ -237,6 +237,7 @@ struct acp_card_profile { #define ACP_PROFILE_ACTIVE (1<<0) #define ACP_PROFILE_OFF (1<<1) /* the Off profile */ #define ACP_PROFILE_SAVE (1<<2) /* if the profile needs saving */ +#define ACP_PROFILE_PRO (1<<3) /* the Pro profile */ uint32_t flags; const char *name;