audio: Allow SetAudioProperties to not be supported am: de829572f9

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

Change-Id: I53747eb2d22ba39218e667fd2d0f562a7cff9eae
This commit is contained in:
Kuowei Li
2021-07-23 20:58:19 +00:00
committed by Automerger Merge Worker

View File

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