HDMI: Add new field eArcSupported

Add a new field called eArcSupported to the port info structure to
determine if the port supports eARC.

Bug: 255901009
Test: make
Change-Id: Iff97479010a097018efcd5070c232a69aa1e1c77
This commit is contained in:
Venkatarama Avadhani
2022-11-02 10:16:28 +05:30
parent b1691e85d6
commit 3d35efca19
3 changed files with 3 additions and 0 deletions

View File

@@ -38,5 +38,6 @@ parcelable HdmiPortInfo {
int portId;
boolean cecSupported;
boolean arcSupported;
boolean eArcSupported;
int physicalAddress;
}

View File

@@ -27,6 +27,7 @@ parcelable HdmiPortInfo {
int portId; // Should start from 1 which corresponds to HDMI "port 1".
boolean cecSupported;
boolean arcSupported;
boolean eArcSupported;
// The physical address of the device connected to this port, valid range is 0x0000 to 0xFFFF
// (ref Sec 8.7.2 of HDMI 1.4b).
int physicalAddress;

View File

@@ -166,6 +166,7 @@ HdmiMock::HdmiMock() {
.portId = static_cast<uint32_t>(1),
.cecSupported = true,
.arcSupported = false,
.eArcSupported = false,
.physicalAddress = mPhysicalAddress};
mPortConnectionStatus[0] = false;
mDeathRecipient = ndk::ScopedAIBinder_DeathRecipient(AIBinder_DeathRecipient_new(serviceDied));