mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Set hfgw profile when HandsfreeGateway is playing
Allow module-bluetooth-device to listens to HandsfreeGateway state changes using DBUS signals. When an handsfree connects, module-bluetooth-device is loaded and goes to playing state. When the handsfree disconnect audio, the card profile is set to "off". If the headset connects audio again after that, the card profile should switch to "hfgw" again to match state of audio connection.
This commit is contained in:
		
							parent
							
								
									2f24a6e627
								
							
						
					
					
						commit
						79c836ec6a
					
				
					 3 changed files with 56 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -76,7 +76,7 @@ struct pa_bluetooth_discovery {
 | 
			
		|||
static void get_properties_reply(DBusPendingCall *pending, void *userdata);
 | 
			
		||||
static pa_dbus_pending* send_and_add_to_pending(pa_bluetooth_discovery *y, DBusMessage *m, DBusPendingCallNotifyFunction func, void *call_data);
 | 
			
		||||
 | 
			
		||||
static pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value) {
 | 
			
		||||
pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value) {
 | 
			
		||||
    pa_assert(value);
 | 
			
		||||
 | 
			
		||||
    if (pa_streq(value, "disconnected"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue