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

Commit 04299528 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

Add new field 'pcmStreamId' in LeAudioBroadcastConfiguration

This field is used to indicate the PCM stream source for given stream
handle

Tag: #feature
Bug: 264692800
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I3df9066e98ca552329bb58ae5fbc5346d1021b10
Merged-In: I3df9066e98ca552329bb58ae5fbc5346d1021b10
parent 236ae100
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41,5 +41,6 @@ parcelable LeAudioBroadcastConfiguration {
    char streamHandle;
    int audioChannelAllocation;
    android.hardware.bluetooth.audio.LeAudioCodecConfiguration leAudioCodecConfig;
    char pcmStreamId;
  }
}
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,10 @@ parcelable LeAudioBroadcastConfiguration {
         */
        int audioChannelAllocation;
        LeAudioCodecConfiguration leAudioCodecConfig;
        /*
         * Pcm stream id to identify the source for given streamHandle.
         */
        char pcmStreamId;
    }
    CodecType codecType;
    BroadcastStreamMap[] streamMap;
+4 −0
Original line number Diff line number Diff line
@@ -1570,6 +1570,10 @@ TEST_P(BluetoothAudioProviderLeAudioBroadcastHardwareAidl,
    le_audio_broadcast_config.streamMap[0]
        .leAudioCodecConfig.set<LeAudioCodecConfiguration::lc3Config>(
            lc3_config);
    le_audio_broadcast_config.streamMap[0].streamHandle = 0x0;
    le_audio_broadcast_config.streamMap[0].pcmStreamId = 0x0;
    le_audio_broadcast_config.streamMap[0].audioChannelAllocation = 0x1 << 0;

    DataMQDesc mq_desc;
    auto aidl_retval = audio_provider_->startSession(
        audio_port_, AudioConfiguration(le_audio_broadcast_config),