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

Commit 16f0645d authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

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

This is preparation for receiving audio from multiple microphones.
We will need this additional info to correlate data with left/right
channel, and with proper moment in time.

Test: compilation
Bug: 150670922
Change-Id: I2d2ddd965a98002a3fd89870744b38c74f4891d2
parent 4da5be34
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);