mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	handle Duplex media class
Audio/Duplex is both a source and a sink. Name the ports as input/output and make sure we list them in the source and sink lists in pulse-server.
This commit is contained in:
		
							parent
							
								
									b0a717c95e
								
							
						
					
					
						commit
						d6127a4745
					
				
					 4 changed files with 18 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -3523,7 +3523,7 @@ static int fill_source_info(struct client *client, struct message *m,
 | 
			
		|||
	struct card_info card_info = CARD_INFO_INIT;
 | 
			
		||||
	struct device_info dev_info = DEVICE_INFO_INIT(PW_DIRECTION_INPUT);
 | 
			
		||||
 | 
			
		||||
	is_monitor = object_is_sink(o);
 | 
			
		||||
	is_monitor = object_is_monitor(o);
 | 
			
		||||
	if ((!object_is_source(o) && !is_monitor) || info == NULL || info->props == NULL)
 | 
			
		||||
		return -ENOENT;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue