mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: pass the right direction to ucm_set_port()
The function requires true for playback ports and false otherwise. See #867
This commit is contained in:
		
							parent
							
								
									cab5cf3ccb
								
							
						
					
					
						commit
						6fd870a5f0
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1774,7 +1774,8 @@ int acp_device_set_port(struct acp_device *dev, uint32_t port_index, uint32_t fl
 | 
				
			||||||
		mixer_volume_init(impl, d);
 | 
							mixer_volume_init(impl, d);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		sync_mixer(d, p);
 | 
							sync_mixer(d, p);
 | 
				
			||||||
		res = pa_alsa_ucm_set_port(d->ucm_context, p, true);
 | 
							res = pa_alsa_ucm_set_port(d->ucm_context, p,
 | 
				
			||||||
 | 
										dev->direction == ACP_DIRECTION_PLAYBACK);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		pa_alsa_port_data *data;
 | 
							pa_alsa_port_data *data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue