mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
CEC: Add implementation of clearLogicalAddress method to default HdmiCec
Bug: 185434120 Test: manual Change-Id: Ia21b415f47bfabe9b429378da2319ab7aa543e26
This commit is contained in:
@@ -50,6 +50,12 @@ Return<Result> HdmiCecDefault::addLogicalAddress(CecLogicalAddress /*addr*/) {
|
||||
}
|
||||
|
||||
Return<void> HdmiCecDefault::clearLogicalAddress() {
|
||||
struct cec_log_addrs cecLogAddrs;
|
||||
memset(&cecLogAddrs, 0, sizeof(cecLogAddrs));
|
||||
int ret = ioctl(mCecFd, CEC_ADAP_S_LOG_ADDRS, &cecLogAddrs);
|
||||
if (ret) {
|
||||
LOG(ERROR) << "Clear logical Address failed, Error = " << strerror(errno);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user