mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: recognize another HSP HS UUID
There are actually two HSP HS UUIDs. My theory is that the second one was added, because someone was not happy with the old UUID being used for identifying two different things (the HSP profile as a whole, and the HS role within the HSP profile). Some headsets only use the new UUID, and those headsets won't work if we don't recognize the new UUID. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=93898
This commit is contained in:
		
							parent
							
								
									15386a710c
								
							
						
					
					
						commit
						9c7a9be7cd
					
				
					 4 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -335,7 +335,7 @@ static void register_profile(pa_bluetooth_backend *b, const char *profile, const
 | 
			
		|||
    pa_assert_se(dbus_message_iter_append_basic(&i, DBUS_TYPE_STRING, &uuid));
 | 
			
		||||
    dbus_message_iter_open_container(&i, DBUS_TYPE_ARRAY, DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING DBUS_TYPE_STRING_AS_STRING
 | 
			
		||||
            DBUS_TYPE_VARIANT_AS_STRING DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &d);
 | 
			
		||||
    if (pa_streq (uuid, PA_BLUETOOTH_UUID_HSP_HS)) {
 | 
			
		||||
    if (pa_bluetooth_uuid_is_hsp_hs(uuid)) {
 | 
			
		||||
        /* In the headset role, the connection will only be initiated from the remote side */
 | 
			
		||||
        autoconnect = 0;
 | 
			
		||||
        pa_dbus_append_basic_variant_dict_entry(&d, "AutoConnect", DBUS_TYPE_BOOLEAN, &autoconnect);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue