diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-11-09 16:14:56 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-11-09 16:14:56 +0100 |
commit | c960b297161b05facdb80a9016d79beae32283eb (patch) | |
tree | c1c38d1e7333d042b39f9498dbc11cb5febd78b8 | |
parent | e401b3aebdaa6241cfe06d5d4ccebcb487f6b3e3 (diff) | |
download | v4l-utils-c960b297161b05facdb80a9016d79beae32283eb.tar.gz |
test-media: increase sleep after modprobe vivid to 3
A sleep of 1 is apparently sometimes too short and the
following v4l2-ctl calls fail. Increment to 3 and hope that
that is sufficient. Also reload vivid with the same
cache_hints module option as the first modprobe for vivid.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-x | contrib/test/test-media | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media index 4f453557..b928c39f 100755 --- a/contrib/test/test-media +++ b/contrib/test/test-media @@ -187,7 +187,7 @@ fi rmmod vivid 2&>/dev/null modprobe vivid n_devs=3 multiplanar=1,2,2 cache_hints=1,0,0 #allocators=0,1,1 -sleep 1 +sleep 3 tmp=`mktemp` @@ -314,8 +314,8 @@ if [ $vivid -eq 1 -a $setup -eq 0 ]; then echo fi - modprobe vivid n_devs=3 multiplanar=1,2,2 #allocators=0,1,1 - sleep 1 + modprobe vivid n_devs=3 multiplanar=1,2,2 cache_hints=1,0,0 #allocators=0,1,1 + sleep 3 $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 |