Skip to content
Snippets Groups Projects
Commit a0fd7261 authored by Hans Verkuil's avatar Hans Verkuil Committed by Hans Verkuil
Browse files

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


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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent dd7e77c6
No related branches found
No related tags found
No related merge requests found
...@@ -214,8 +214,15 @@ if ! $v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap ; then ...@@ -214,8 +214,15 @@ if ! $v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap ; then
exit 0 exit 0
fi 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-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 $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-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-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 $v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment