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

Commit 5f6292fc authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Automerger Merge Worker
Browse files

LE Audio: pass CIS connection handle and timestamp to audio handler am:...

LE Audio: pass CIS connection handle and timestamp to audio handler am: 16f0645d am: 6a54265e am: 82f097f1 am: 5470e5be

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

Change-Id: Ia134d70bae4aaa32579d0cf3846e247bdc61d04b
parents cbe1f493 5470e5be
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2060,7 +2060,8 @@ class LeAudioClientImpl : public LeAudioClient {
    }
  }

  void SendAudioData(uint8_t* data, uint16_t size) {
  void SendAudioData(uint8_t* data, uint16_t size, uint16_t cis_conn_hdl,
                     uint32_t timestamp) {
    /* Get only one channel for MONO microphone */
    /* Gather data for channel */

@@ -2923,7 +2924,8 @@ class LeAudioClientImpl : public LeAudioClient {
        }

        SendAudioData(event->p_msg->data + event->p_msg->offset,
                      event->p_msg->len - event->p_msg->offset);
                      event->p_msg->len - event->p_msg->offset,
                      event->cis_conn_hdl, event->ts);
      } break;
      case bluetooth::hci::iso_manager::kIsoEventCisEstablishCmpl: {
        auto* event =
+4 −1
Original line number Diff line number Diff line
@@ -695,8 +695,11 @@ struct iso_impl {
    }

    STREAM_SKIP_UINT16(stream);
    if (p_msg->layer_specific & BT_ISO_HDR_CONTAINS_TS)
    if (p_msg->layer_specific & BT_ISO_HDR_CONTAINS_TS) {
      STREAM_TO_UINT32(evt.ts, stream);
    } else {
      evt.ts = 0;
    }

    STREAM_TO_UINT16(seq_nb, stream);