Add new field 'pcmStreamId' in LeAudioBroadcastConfiguration am: c1aea3238f

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2429182

Change-Id: Icc34337a5e59f606cb873edc967cb7d2ffaa2941
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Rongxuan Liu
2023-02-10 23:21:32 +00:00
committed by Automerger Merge Worker
3 changed files with 9 additions and 0 deletions

View File

@@ -41,5 +41,6 @@ parcelable LeAudioBroadcastConfiguration {
char streamHandle;
int audioChannelAllocation;
android.hardware.bluetooth.audio.LeAudioCodecConfiguration leAudioCodecConfig;
char pcmStreamId;
}
}

View File

@@ -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;

View File

@@ -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),