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

Commit fc5f6077 authored by Henri Chataing's avatar Henri Chataing
Browse files

Flags 24Q3: Remove a2dp_async_allow_low_latency

Bug: 339368380
Flag: com.android.bluetooth.flags.a2dp_async_allow_low_latency
Test: m com.android.btservices
Change-Id: Ie52a718d3a3203f75767eb69f63bd7fe5b22ec43
parent 86d0ed11
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -31,16 +31,6 @@ flag {
    }
}

flag {
    name: "a2dp_async_allow_low_latency"
    namespace: "bluetooth"
    description: "Make allow_low_latency run on main thread"
    bug : "339368380"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "a2dp_ignore_started_when_responder"
    namespace: "bluetooth"
+2 −6
Original line number Diff line number Diff line
@@ -1118,12 +1118,8 @@ static int set_dynamic_audio_buffer_size(int codec, int size) {

static bool allow_low_latency_audio(bool allowed, const RawAddress& /* address */) {
  log::info("{}", allowed);
  if (com::android::bluetooth::flags::a2dp_async_allow_low_latency()) {
  do_in_main_thread(
          base::BindOnce(bluetooth::audio::a2dp::set_audio_low_latency_mode_allowed, allowed));
  } else {
    bluetooth::audio::a2dp::set_audio_low_latency_mode_allowed(allowed);
  }
  return true;
}