mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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
This commit is contained in:
@@ -41,5 +41,6 @@ parcelable LeAudioBroadcastConfiguration {
|
||||
char streamHandle;
|
||||
int audioChannelAllocation;
|
||||
android.hardware.bluetooth.audio.LeAudioCodecConfiguration leAudioCodecConfig;
|
||||
char pcmStreamId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user