mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
CEC: Add VTS test to enable audio return channel am: a17d5ae5be am: e7a66a40de am: fa72d25470
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1579867 Change-Id: I9f65c279e14ea20ce787da7ef0cc3a9e85967273
This commit is contained in:
committed by
Automerger Merge Worker
commit
35dfeee4cb
@@ -137,3 +137,16 @@ TEST_P(HdmiCecTest, SetLanguage) {
|
||||
Return<void> ret = hdmiCec->setLanguage("eng");
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
}
|
||||
|
||||
TEST_P(HdmiCecTest, EnableAudioReturnChannel) {
|
||||
hidl_vec<HdmiPortInfo> ports;
|
||||
Return<void> ret =
|
||||
hdmiCec->getPortInfo([&ports](hidl_vec<HdmiPortInfo> list) { ports = list; });
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
for (size_t i = 0; i < ports.size(); ++i) {
|
||||
if (ports[i].arcSupported) {
|
||||
ret = hdmiCec->enableAudioReturnChannel(ports[i].portId, true);
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user