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

Commit 6a54265e 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: 16f0645d

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

Change-Id: I289e9254e334a66004b05048466b89342103c232
parents 13c4209b 16f0645d
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line 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 */
    /* Get only one channel for MONO microphone */
    /* Gather data for channel */
    /* Gather data for channel */


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


        SendAudioData(event->p_msg->data + event->p_msg->offset,
        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;
      } break;
      case bluetooth::hci::iso_manager::kIsoEventCisEstablishCmpl: {
      case bluetooth::hci::iso_manager::kIsoEventCisEstablishCmpl: {
        auto* event =
        auto* event =
+4 −1
Original line number Original line Diff line number Diff line
@@ -695,8 +695,11 @@ struct iso_impl {
    }
    }


    STREAM_SKIP_UINT16(stream);
    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);
      STREAM_TO_UINT32(evt.ts, stream);
    } else {
      evt.ts = 0;
    }


    STREAM_TO_UINT16(seq_nb, stream);
    STREAM_TO_UINT16(seq_nb, stream);