diff mbox series

v4l-utils: test-media: connect the hdmi input to the output

Message ID ddd6cf19-748c-40e2-bd32-f4c2015e13f2@xs4all.nl (mailing list archive)
State New
Headers show
Series v4l-utils: test-media: connect the hdmi input to the output | expand

Commit Message

Hans Verkuil June 25, 2024, 7:19 a.m. UTC
Now that vivid is able to virtually connect HDMI inputs
to HDMI outputs, that also means that by default the CEC
devices no longer are connected, and you need to set up that
loopback configuration manually in test-media.

Add the necessary commands for that.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
This patch relies on this patch series:

https://patchwork.linuxtv.org/project/linux-media/list/?series=13138
---
 contrib/test/test-media | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/contrib/test/test-media b/contrib/test/test-media
index 5895cf04..156503a0 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -214,8 +214,15 @@  if ! $v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap ; then
 	exit 0
 fi

+# Connect input HDMI 000-0 to output HDMI 000-0
+# This ensures an EDID is available at the output side, and that CEC
+# can be tested.
+$v4l2_ctl -z platform:vivid-000 -d vivid-000-vid-cap -c hdmi_000_0_is_connected_to=2
 $v4l2_ctl -z platform:vivid-000 -d vivid-000-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24
 $v4l2_ctl -z platform:vivid-000 -d vivid-000-vid-out -o1 -x width=3840,height=2160,pixelformat=NV24
+# Connect input HDMI 001-0 to output HDMI 001-0
+# This ensures an EDID is available at the output side.
+$v4l2_ctl -z platform:vivid-001 -d vivid-001-vid-cap -c hdmi_001_0_is_connected_to=3
 $v4l2_ctl -z platform:vivid-001 -d vivid-001-vid-cap -i3 -v width=3840,height=2160,pixelformat=NM16
 $v4l2_ctl -z platform:vivid-001 -d vivid-001-vid-out -o1 -x width=3840,height=2160,pixelformat=NM16
 $v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24