aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2019-02-02 07:49:24 (GMT)
committerHans Verkuil <hans.verkuil@cisco.com>2019-02-02 07:49:24 (GMT)
commit19278b69cba6d4ebcf53a6c34f9618f3b9d041f9 (patch)
tree54e6ce7902df3afff81fad53bda593ecee310eb8
parent57d3413183237db0401c67673fd840be3ec593cf (diff)
test-media: use new bus info/entity name to identify devices
Using /dev/videoX or /dev/mediaX is a bad idea since X is unstable and depends on when drivers are loaded. It is now possible (at least for vivid) to select devices by media bus_info and by entity name. Use this. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rwxr-xr-xcontrib/test/test-media16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 0a8cc1a..2fb2711 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -66,12 +66,12 @@ modprobe vim2m
modprobe vimc
sleep 1
-v4l2-ctl -d0 -i3 -v width=3840,height=2160,pixelformat=NV24
-v4l2-ctl -d1 -o1 -x width=3840,height=2160,pixelformat=NV24
-v4l2-ctl -d2 -i3 -v width=3840,height=2160,pixelformat=NM16
-v4l2-ctl -d3 -o1 -x width=3840,height=2160,pixelformat=NM16
-v4l2-ctl -d4 -i3 -v width=3840,height=2160,pixelformat=NV24
-v4l2-ctl -d5 -o1 -x width=3840,height=2160,pixelformat=NM16
+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-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
+v4l2-ctl -z platform:vivid-002 -d vivid-002-vid-out -o1 -x width=3840,height=2160,pixelformat=NM16
media-ctl -d /dev/media4 -V '1:0[fmt:SBGGR8_1X8/640x480]'
media-ctl -d /dev/media4 -V '5:0[fmt:SBGGR8_1X8/640x480]'
@@ -83,9 +83,9 @@ echo
tmp=`mktemp`
if [ $vivid -eq 1 ]; then
- stdbuf -oL v4l2-compliance -m0 -e4 -s10 -a 2>&1 | tee -a $tmp
+ stdbuf -oL v4l2-compliance -m platform:vivid-000 -z platform:vivid-002 -e vivid-002-vid-cap -s10 -a 2>&1 | tee -a $tmp
echo
- stdbuf -oL v4l2-compliance -m1 -e5 -s10 -a 2>&1 | tee -a $tmp
+ stdbuf -oL v4l2-compliance -m platform:vivid-001 -z platform:vivid-002 -e vivid-002-vid-out -s10 -a 2>&1 | tee -a $tmp
echo
fi

Privacy Policy