aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-04 13:09:12 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-04 13:09:12 (GMT)
commite649cc816c331de7ecdf7ffcc3aa9b268c7bf45f (patch)
treec60099c1f867385f2fd5bc79c66b01c431e3a4c1
parent2fea6c505c25be228c92f363fdebb5d31d9ed96e (diff)
test-media: use -D and -a for the cec commands
Instead of using -d /dev/cecX use the -D and -a options to specify the driver and adapter name which uniquely identifies the cec adapter that should be used. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 888170a..d28d4f7 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -90,16 +90,16 @@ if [ $vivid -eq 1 ]; then
fi
if [ $cec -eq 1 ]; then
- cec-ctl -s -d0 --tv
- cec-ctl -s -d1 --playback
+ cec-ctl -s -D vivid -a vivid-000-vid-cap0 --tv
+ cec-ctl -s -D vivid -a vivid-000-vid-out0 --playback
trap 'kill $f0 $f1 2>/dev/null' INT
- cec-follower -s -d0 2>&1 >/dev/null &
+ cec-follower -s -D vivid -a vivid-000-vid-cap0 2>&1 >/dev/null &
f0=$!
- cec-follower -s -d1 2>&1 >/dev/null &
+ cec-follower -s -D vivid -a vivid-000-vid-out0 2>&1 >/dev/null &
f1=$!
- stdbuf -oL cec-compliance -d0 -A -r4 -t10 $cecpwr 2>&1 | tee -a $tmp
+ stdbuf -oL cec-compliance -D vivid -a vivid-000-vid-cap0 -A -r4 -t10 $cecpwr 2>&1 | tee -a $tmp
sleep 5
- stdbuf -oL cec-compliance -d1 -A -r0 -t10 $cecpwr 2>&1 | tee -a $tmp
+ stdbuf -oL cec-compliance -D vivid -a vivid-000-vid-out0 -A -r0 -t10 $cecpwr 2>&1 | tee -a $tmp
kill $f0
kill $f1
echo

Privacy Policy