summaryrefslogtreecommitdiff
path: root/scripts/vsp-lib.sh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-16 00:08:30 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-16 01:41:54 +0300
commit27068bf44d61a51dfd78a42f788268e1d3b3409e (patch)
treea10ad18c20c66af61872ebf7fade60d03f5bbd24 /scripts/vsp-lib.sh
parent86fb64f95e2710b4292a4d4731c1b25ef079e48f (diff)
tests: Skip VYUY tests on Gen3 platforms
The Gen3 platforms don't support VYUY, skip the related tests. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-xscripts/vsp-lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 02376e8..9b9c3c8 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -13,6 +13,14 @@ vsp1_device() {
$mediactl -d $mdev -p | grep 'bus info' | sed 's/.*platform://'
}
+vsp1_model() {
+ $mediactl -d $mdev -p | grep 'model' | sed 's/.* //'
+}
+
+vsp1_generation() {
+ echo $(vsp1_model) | sed 's/-.*//'
+}
+
vsp1_has_feature() {
local feature=$1
local entity_name=$(echo $feature | sed 's/\[.*//')