commit | 4f21be2965d5c89041c36ba19fb0d6ee23a0d9ac | [log] [tgz] |
---|---|---|
author | Kuowei Li <kuowei.li@mediatek.com> | Fri Jul 23 20:58:19 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jul 23 20:58:19 2021 +0000 |
tree | e88ef90fcc51410e63271fb909eee6326a9230c1 | |
parent | 2adca4e9152fc2d95526e14daf5e137e1b4e2a88 [diff] | |
parent | de829572f9773a1aae1b7f8e048b134ce2304a98 [diff] |
audio: Allow SetAudioProperties to not be supported am: de829572f9 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588 Change-Id: I53747eb2d22ba39218e667fd2d0f562a7cff9eae
diff --git a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h index aa7fd8e..340903a 100644 --- a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h +++ b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h
@@ -1390,6 +1390,9 @@ 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; }