audio: Allow SetAudioProperties to not be supported am: de829572f9
am: 4f21be2965
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588 Change-Id: I8711fc885403a22d7a09fc51aeb3d6e69ef759ea
This commit is contained in:
commit
2950416a76
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue