Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b032ac authored by Jeremy Wu's avatar Jeremy Wu Committed by Gerrit Code Review
Browse files

Merge "Floss: add sysprop |enable_le_audio_only|" into main

parents 57d074cb 4a123063
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ pub enum PropertyBool {
    // bluetooth.core.le
    LeAdvMonRtlQuirk,
    LeAdvMonQcaQuirk,

    // bluetooth.le_audio
    LeAudioEnableLeAudioOnly,
}

impl Into<(CString, bool)> for PropertyBool {
@@ -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)
+2 −0
Original line number Diff line number Diff line
@@ -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",