This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: cec-follower: check both CEC_CAP_PHYS_ADDR and _CONNECTOR_INFO
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Thu Mar 26 11:51:17 2020 +0100

cec-follower bails out if the physical address is invalid and
CEC_CAP_PHYS_ADDR is set. But it should also check that
CEC_CAP_CONNECTOR_INFO is not set. If both capabilities are
set than the device receives the physical address from the
corresponding connector.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/cec-follower/cec-follower.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=81e45d957c4db39397f893100b3d2729ef39b052
diff --git a/utils/cec-follower/cec-follower.cpp 
b/utils/cec-follower/cec-follower.cpp
index 958135869ee8..c9cd18d1eed9 100644
--- a/utils/cec-follower/cec-follower.cpp
+++ b/utils/cec-follower/cec-follower.cpp
@@ -519,7 +519,9 @@ int main(int argc, char **argv)
        }
        printf("\n");
 
-       bool missing_pa = node.phys_addr == CEC_PHYS_ADDR_INVALID && (node.caps 
& CEC_CAP_PHYS_ADDR);
+       bool missing_pa = node.phys_addr == CEC_PHYS_ADDR_INVALID &&
+               (node.caps & CEC_CAP_PHYS_ADDR) &&
+               !(node.caps & CEC_CAP_CONNECTOR_INFO);
        bool missing_la = laddrs.num_log_addrs == 0 && (node.caps & 
CEC_CAP_LOG_ADDRS);
 
        if (missing_la || missing_pa)

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to