mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "BtAudio: Handle dataInterval in LeAudioSW VTS" am: 3a6d0f8d75
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1986306 Change-Id: I262f96a74057a13db5f9c3fd6e58d04b7fef9ad0
This commit is contained in:
@@ -983,7 +983,8 @@ TEST_P(BluetoothAudioProviderLeAudioOutputSoftwareAidl,
|
|||||||
.channelMode = channel_mode,
|
.channelMode = channel_mode,
|
||||||
.dataIntervalUs = data_interval_us,
|
.dataIntervalUs = data_interval_us,
|
||||||
};
|
};
|
||||||
bool is_codec_config_valid = IsPcmConfigSupported(pcm_config);
|
bool is_codec_config_valid =
|
||||||
|
IsPcmConfigSupported(pcm_config) && pcm_config.dataIntervalUs > 0;
|
||||||
DataMQDesc mq_desc;
|
DataMQDesc mq_desc;
|
||||||
auto aidl_retval = audio_provider_->startSession(
|
auto aidl_retval = audio_provider_->startSession(
|
||||||
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
||||||
@@ -1054,7 +1055,8 @@ TEST_P(BluetoothAudioProviderLeAudioInputSoftwareAidl,
|
|||||||
.channelMode = channel_mode,
|
.channelMode = channel_mode,
|
||||||
.dataIntervalUs = data_interval_us,
|
.dataIntervalUs = data_interval_us,
|
||||||
};
|
};
|
||||||
bool is_codec_config_valid = IsPcmConfigSupported(pcm_config);
|
bool is_codec_config_valid =
|
||||||
|
IsPcmConfigSupported(pcm_config) && pcm_config.dataIntervalUs > 0;
|
||||||
DataMQDesc mq_desc;
|
DataMQDesc mq_desc;
|
||||||
auto aidl_retval = audio_provider_->startSession(
|
auto aidl_retval = audio_provider_->startSession(
|
||||||
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
||||||
@@ -1395,7 +1397,8 @@ TEST_P(BluetoothAudioProviderLeAudioBroadcastSoftwareAidl,
|
|||||||
.channelMode = channel_mode,
|
.channelMode = channel_mode,
|
||||||
.dataIntervalUs = data_interval_us,
|
.dataIntervalUs = data_interval_us,
|
||||||
};
|
};
|
||||||
bool is_codec_config_valid = IsPcmConfigSupported(pcm_config);
|
bool is_codec_config_valid =
|
||||||
|
IsPcmConfigSupported(pcm_config) && pcm_config.dataIntervalUs > 0;
|
||||||
DataMQDesc mq_desc;
|
DataMQDesc mq_desc;
|
||||||
auto aidl_retval = audio_provider_->startSession(
|
auto aidl_retval = audio_provider_->startSession(
|
||||||
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
audio_port_, AudioConfiguration(pcm_config), &mq_desc);
|
||||||
|
|||||||
Reference in New Issue
Block a user