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
This commit is contained in:
Rongxuan Liu
2023-01-26 17:14:54 +00:00
parent 083ebfc0d3
commit c7ef8a08be
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),