mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: fix FastStream microphone support on some devices
Some devices require the source direction bit to be selected, in order to send data.
This commit is contained in:
		
							parent
							
								
									65f881c222
								
							
						
					
					
						commit
						9e94aafaec
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -105,6 +105,9 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	conf.direction = FASTSTREAM_DIRECTION_SINK;
 | 
						conf.direction = FASTSTREAM_DIRECTION_SINK;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (codec->duplex_codec)
 | 
				
			||||||
 | 
							conf.direction |= FASTSTREAM_DIRECTION_SOURCE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((i = a2dp_codec_select_config(frequencies,
 | 
						if ((i = a2dp_codec_select_config(frequencies,
 | 
				
			||||||
			SPA_N_ELEMENTS(frequencies),
 | 
								SPA_N_ELEMENTS(frequencies),
 | 
				
			||||||
			conf.sink_frequency,
 | 
								conf.sink_frequency,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue