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

Commit 6666a6d8 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Change required MTU" am: 831a53fc am: 6370c9a9 am:...

Merge "leaudio: Change required MTU" am: 831a53fc am: 6370c9a9 am: 1cc22a69 am: 66edb5d6 am: 27c00ef9

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2502295



Change-Id: Ib96d0f9652bfe036ee62bd1b629b0891402e5947
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3ec798e1 27c00ef9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1848,7 +1848,11 @@ class LeAudioClientImpl : public LeAudioClient {
  void changeMtuIfPossible(LeAudioDevice* leAudioDevice) {
    if (leAudioDevice->mtu_ == GATT_DEF_BLE_MTU_SIZE) {
      LOG(INFO) << __func__ << ", Configure MTU";
      BtaGattQueue::ConfigureMtu(leAudioDevice->conn_id_, GATT_MAX_MTU_SIZE);
      /* Use here kBapMinimumAttMtu, because we know that GATT will request
       * GATT_MAX_MTU_SIZE on ATT anyways. We also know that GATT will use this
       * kBapMinimumAttMtu as an input for Data Length Update procedure in the controller.
       */
      BtaGattQueue::ConfigureMtu(leAudioDevice->conn_id_, kBapMinimumAttMtu);
    }
  }

@@ -4807,6 +4811,8 @@ class LeAudioClientImpl : public LeAudioClient {
  static constexpr char kNotifyUpperLayerAboutGroupBeingInIdleDuringCall[] =
      "persist.bluetooth.leaudio.notify.idle.during.call";

  static constexpr uint16_t kBapMinimumAttMtu = 64;

  /* Current stream configuration */
  LeAudioCodecConfiguration current_source_codec_config;
  LeAudioCodecConfiguration current_sink_codec_config;