acp: mark the Pro profile with a flag

This commit is contained in:
Wim Taymans 2023-01-03 13:13:03 +01:00
parent 6116ef8484
commit 2eaac9b67a
2 changed files with 2 additions and 0 deletions

View file

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

View file

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