mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
audio: Allow SetAudioProperties to not be supported
The parameter of sample rate, channel mask and format is not mandatory to support by Audio HAL. At meantime, there is no corresponding handle in framework. Hence, SetAudioProperties should allow reporting not supported. Bug: 194368657 Test: run vts -m VtsHalAudioV7_0Target Change-Id: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2 Merged-In: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2
This commit is contained in:
committed by
Mikhail Naganov
parent
d11628ec78
commit
9faa583bf3
@@ -1390,6 +1390,9 @@ static void testSetAudioProperties(IStream* stream) {
|
||||
config.channelMask.value(channelMask);
|
||||
auto ret = stream->setAudioProperties(config);
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
if (ret == Result::NOT_SUPPORTED) {
|
||||
GTEST_SKIP() << "setAudioProperties is not supported";
|
||||
}
|
||||
EXPECT_EQ(Result::OK, ret)
|
||||
<< profile.format << "; " << sampleRate << "; " << channelMask;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user