aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-07 18:28:15 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-07 18:28:15 (GMT)
commita18e32691ed8112e4f5e3d3c1bc37168d711e3bf (patch)
treede4d2833e7a96bf24144b253ab84dcf058750a7b
parentd8d11c372dc806d568adfaacddfb3c6469c52ed6 (diff)
test-media: use bus_info for vim2m and vimc tests
Don't use device nodes but let v4l2-ctl/v4l2-compliance find the device nodes based on the bus_info string. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media9
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 465002c..3c7324f 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -75,9 +75,8 @@ v4l2-ctl -z platform:vivid-002 -d vivid-002-vid-out -o1 -x width=3840,height=216
media-ctl -d /dev/media4 -V '1:0[fmt:SBGGR8_1X8/640x480]'
media-ctl -d /dev/media4 -V '5:0[fmt:SBGGR8_1X8/640x480]'
-v4l2-ctl -d9 -v width=1920,height=1440
-v4l2-ctl -d9 -v width=1920,height=1440
-v4l2-ctl -d7 -v pixelformat=BA81
+v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=1920,height=1440
+v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81
echo
tmp=`mktemp`
@@ -106,12 +105,12 @@ if [ $cec -eq 1 ]; then
fi
if [ $vim2m -eq 1 ]; then
- stdbuf -oL v4l2-compliance -m3 -e4 -s10 -a 2>&1 | tee -a $tmp
+ stdbuf -oL v4l2-compliance -m platform:vim2m -z platform:vivid-002 -e vivid-002-vid-cap -s10 -a 2>&1 | tee -a $tmp
echo
fi
if [ $vimc -eq 1 ]; then
- stdbuf -oL v4l2-compliance -m4 -e4 -s10 -a 2>&1 | tee -a $tmp
+ stdbuf -oL v4l2-compliance -m platform:vimc -z platform:vivid-002 -e vivid-002-vid-cap -s10 -a 2>&1 | tee -a $tmp
echo
fi

Privacy Policy