mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	acp: mark the Pro profile with a flag
This commit is contained in:
		
							parent
							
								
									6116ef8484
								
							
						
					
					
						commit
						2eaac9b67a
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -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.name = ap->name = pa_xstrdup("pro-audio");
 | 
				
			||||||
	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
 | 
						ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
 | 
				
			||||||
	ap->profile.available = ACP_AVAILABLE_YES;
 | 
						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->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);
 | 
						ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
 | 
				
			||||||
	pa_hashmap_put(ps->profiles, ap->name, ap);
 | 
						pa_hashmap_put(ps->profiles, ap->name, ap);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -237,6 +237,7 @@ struct acp_card_profile {
 | 
				
			||||||
#define ACP_PROFILE_ACTIVE	(1<<0)
 | 
					#define ACP_PROFILE_ACTIVE	(1<<0)
 | 
				
			||||||
#define ACP_PROFILE_OFF		(1<<1)		/* the Off profile */
 | 
					#define ACP_PROFILE_OFF		(1<<1)		/* the Off profile */
 | 
				
			||||||
#define ACP_PROFILE_SAVE	(1<<2)		/* if the profile needs saving */
 | 
					#define ACP_PROFILE_SAVE	(1<<2)		/* if the profile needs saving */
 | 
				
			||||||
 | 
					#define ACP_PROFILE_PRO		(1<<3)		/* the Pro profile */
 | 
				
			||||||
	uint32_t flags;
 | 
						uint32_t flags;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *name;
 | 
						const char *name;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue