Loading system/gd/rust/topshim/src/sysprop.rs +6 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,9 @@ pub enum PropertyBool { // bluetooth.core.le LeAdvMonRtlQuirk, LeAdvMonQcaQuirk, // bluetooth.le_audio LeAudioEnableLeAudioOnly, } impl Into<(CString, bool)> for PropertyBool { Loading @@ -74,6 +77,9 @@ impl Into<(CString, bool)> for PropertyBool { let (key, default_value) = match self { PropertyBool::LeAdvMonRtlQuirk => ("bluetooth.core.le.adv_mon_rtl_quirk", false), PropertyBool::LeAdvMonQcaQuirk => ("bluetooth.core.le.adv_mon_qca_quirk", false), PropertyBool::LeAudioEnableLeAudioOnly => { ("bluetooth.le_audio.enable_le_audio_only", false) } }; (CString::new(key).expect("CString::new failed on sysprop key"), default_value) Loading system/gd/sysprops/sysprops_module.cc +2 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,8 @@ void SyspropsModule::parse_config(std::string file_path) { "bluetooth.core.le.adv_mon_rtl_quirk", "bluetooth.core.le.adv_mon_qca_quirk", "bluetooth.core.le.vendor_capabilities.enabled", // LE Audio "bluetooth.le_audio.enable_le_audio_only", // SCO "bluetooth.sco.disable_enhanced_connection", "bluetooth.sco.swb_supported", Loading Loading
system/gd/rust/topshim/src/sysprop.rs +6 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,9 @@ pub enum PropertyBool { // bluetooth.core.le LeAdvMonRtlQuirk, LeAdvMonQcaQuirk, // bluetooth.le_audio LeAudioEnableLeAudioOnly, } impl Into<(CString, bool)> for PropertyBool { Loading @@ -74,6 +77,9 @@ impl Into<(CString, bool)> for PropertyBool { let (key, default_value) = match self { PropertyBool::LeAdvMonRtlQuirk => ("bluetooth.core.le.adv_mon_rtl_quirk", false), PropertyBool::LeAdvMonQcaQuirk => ("bluetooth.core.le.adv_mon_qca_quirk", false), PropertyBool::LeAudioEnableLeAudioOnly => { ("bluetooth.le_audio.enable_le_audio_only", false) } }; (CString::new(key).expect("CString::new failed on sysprop key"), default_value) Loading
system/gd/sysprops/sysprops_module.cc +2 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,8 @@ void SyspropsModule::parse_config(std::string file_path) { "bluetooth.core.le.adv_mon_rtl_quirk", "bluetooth.core.le.adv_mon_qca_quirk", "bluetooth.core.le.vendor_capabilities.enabled", // LE Audio "bluetooth.le_audio.enable_le_audio_only", // SCO "bluetooth.sco.disable_enhanced_connection", "bluetooth.sco.swb_supported", Loading