Thread (2 messages) 2 messages, 2 authors, 2019-09-09

[Linux-kernel-mentees] [PATCH] cec-compliance: system information give features

From: Jiunn Chang <hidden>
Date: 2019-09-06 16:44:47
Also in: linux-media
Subsystem: the rest · Maintainer: Linus Torvalds

For devices on a HDMI ARC link, sinks can only support transmitter
devices and sources can only support receiver devices.

Add two checks:
 - Playback devices can only have has_arc_rx
 - TVs can only have has_arc_tx

Signed-off-by: Jiunn Chang <c0d1n61at3 at gmail.com>
---
 utils/cec-compliance/cec-test.cpp | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index bbd13989..839c0fb9 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -172,6 +172,10 @@ int system_info_give_features(struct node *node, unsigned me, unsigned la, bool
 		return fail("Only Playback and Recording devices shall set the Supports Deck Control bit\n");
 	if (!cec_has_tv(1 << la) && node->remote[la].has_rec_tv)
 		return fail("Only TVs shall set the Record TV Screen bit\n");
+	if (!cec_has_playback(1 << la) && node->remote[la].has_arc_rx)
+		return fail("Only Playback devices shall set the Source Supports ARC Rx bit\n");
+	if (!cec_has_tv(1 << la) && node->remote[la].has_arc_tx)
+		return fail("Only TVs shall set the Sink Supports ARC Tx bit\n");
 
 	fail_on_test(node->remote[la].rc_profile != *rc_profile);
 	fail_on_test(node->remote[la].dev_features != *dev_features);
-- 
2.23.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help