mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: add proper handling for bluetooth.nrec property
NREC stands for Noise Reduction and Echo Cancelation, it can be changed at any point by the headset. When set to "1" indicates that those algorithms shall be enabled by default and "0" means the headset probably have them active so they should be disabled in PA side.
This commit is contained in:
		
							parent
							
								
									97f7c5759e
								
							
						
					
					
						commit
						ad85624527
					
				
					 3 changed files with 112 additions and 48 deletions
				
			
		| 
						 | 
				
			
			@ -70,6 +70,7 @@ struct pa_bluetooth_transport {
 | 
			
		|||
    uint8_t codec;
 | 
			
		||||
    uint8_t *config;
 | 
			
		||||
    int config_size;
 | 
			
		||||
    pa_bool_t nrec;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* This enum is shared among Audio, Headset, AudioSink, and AudioSource, although not all values are acceptable in all profiles */
 | 
			
		||||
| 
						 | 
				
			
			@ -128,6 +129,7 @@ const pa_bluetooth_transport* pa_bluetooth_device_get_transport(const pa_bluetoo
 | 
			
		|||
 | 
			
		||||
int pa_bluetooth_transport_acquire(const pa_bluetooth_transport *t, const char *accesstype, size_t *imtu, size_t *omtu);
 | 
			
		||||
void pa_bluetooth_transport_release(const pa_bluetooth_transport *t, const char *accesstype);
 | 
			
		||||
int pa_bluetooth_transport_parse_property(pa_bluetooth_transport *t, DBusMessageIter *i);
 | 
			
		||||
 | 
			
		||||
pa_hook* pa_bluetooth_discovery_hook(pa_bluetooth_discovery *d);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue