mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-ucm: Make ports store only one device
After previous patches, we should be generating no combination ports, so we don't need to store multiple devices per port. Simplify the code based on this. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
		
							parent
							
								
									68ac72d098
								
							
						
					
					
						commit
						b02c8ba153
					
				
					 3 changed files with 24 additions and 108 deletions
				
			
		| 
						 | 
				
			
			@ -167,7 +167,7 @@ void pa_alsa_ucm_add_port(
 | 
			
		|||
        pa_hashmap *ports,
 | 
			
		||||
        pa_card_profile *cp,
 | 
			
		||||
        pa_core *core);
 | 
			
		||||
int pa_alsa_ucm_set_port(pa_alsa_ucm_mapping_context *context, pa_device_port *port, bool is_sink);
 | 
			
		||||
int pa_alsa_ucm_set_port(pa_alsa_ucm_mapping_context *context, pa_device_port *port);
 | 
			
		||||
 | 
			
		||||
void pa_alsa_ucm_free(pa_alsa_ucm_config *ucm);
 | 
			
		||||
void pa_alsa_ucm_mapping_context_free(pa_alsa_ucm_mapping_context *context);
 | 
			
		||||
| 
						 | 
				
			
			@ -280,9 +280,7 @@ struct pa_alsa_ucm_port_data {
 | 
			
		|||
    pa_alsa_ucm_config *ucm;
 | 
			
		||||
    pa_device_port *core_port;
 | 
			
		||||
 | 
			
		||||
    /* A single port will be associated with multiple devices if it represents
 | 
			
		||||
     * a combination of devices. */
 | 
			
		||||
    pa_dynarray *devices; /* pa_alsa_ucm_device */
 | 
			
		||||
    pa_alsa_ucm_device *device;
 | 
			
		||||
 | 
			
		||||
    /* profile name -> pa_alsa_path for volume control */
 | 
			
		||||
    pa_hashmap *paths;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue