mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: disable HSP AG by default in native backend
This commit is contained in:
		
							parent
							
								
									f6cc45f736
								
							
						
					
					
						commit
						b9f2e6a8c4
					
				
					 2 changed files with 10 additions and 5 deletions
				
			
		| 
						 | 
					@ -54,6 +54,7 @@ struct spa_bt_backend {
 | 
				
			||||||
	struct spa_dbus *dbus;
 | 
						struct spa_dbus *dbus;
 | 
				
			||||||
	DBusConnection *conn;
 | 
						DBusConnection *conn;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define DEFAULT_ENABLED_PROFILES (SPA_BT_PROFILE_HEADSET_HEAD_UNIT | SPA_BT_PROFILE_HFP_AG)
 | 
				
			||||||
	enum spa_bt_profile enabled_profiles;
 | 
						enum spa_bt_profile enabled_profiles;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct spa_list rfcomm_list;
 | 
						struct spa_list rfcomm_list;
 | 
				
			||||||
| 
						 | 
					@ -1058,7 +1059,7 @@ static int parse_headset_roles(struct spa_bt_backend *backend, const struct spa_
 | 
				
			||||||
	backend->enabled_profiles = profiles;
 | 
						backend->enabled_profiles = profiles;
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
fallback:
 | 
					fallback:
 | 
				
			||||||
	backend->enabled_profiles = SPA_BT_PROFILE_HEADSET_AUDIO;
 | 
						backend->enabled_profiles = DEFAULT_ENABLED_PROFILES;
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,10 +4,14 @@ properties = {
 | 
				
			||||||
    #bluez5.msbc-support = true
 | 
					    #bluez5.msbc-support = true
 | 
				
			||||||
    #bluez5.sbc-xq-support = true
 | 
					    #bluez5.sbc-xq-support = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Enabled headset roles (default: all), this property only applies
 | 
					    # Enabled headset roles (default: [ hsp_hs hfp_ag ]), this 
 | 
				
			||||||
    # to native backend. Currently some headsets(Sony WH-1000XM3) are not 
 | 
					    # property only applies to native backend. Currently some headsets
 | 
				
			||||||
    # working with both hsp_ag and hfp_ag enabled, disable either hsp_ag 
 | 
					    # (Sony WH-1000XM3) are not working with both hsp_ag and hfp_ag 
 | 
				
			||||||
    # or hfp_ag to work around it.
 | 
					    # enabled, disable either hsp_ag or hfp_ag to work around it.
 | 
				
			||||||
 | 
					    #
 | 
				
			||||||
 | 
					    # Supported headset roles: hsp_hs (HSP Headset),
 | 
				
			||||||
 | 
					    #                          hsp_ag (HSP Audio Gateway),
 | 
				
			||||||
 | 
					    #                          hfp_ag (HFP Audio Gateway)
 | 
				
			||||||
    #bluez5.headset-roles = [ hsp_hs hsp_ag hfp_ag ]
 | 
					    #bluez5.headset-roles = [ hsp_hs hsp_ag hfp_ag ]
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    # Enabled A2DP codecs (default: all)
 | 
					    # Enabled A2DP codecs (default: all)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue