From e25d54d255788fb37af69a05beec91976eeb1984 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 25 May 2017 17:03:01 +0300 Subject: vsp-lib: Use the correct media device name to count BRU inputs Use the media device under test, not the default media0. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Tested-by: Kieran Bingham --- scripts/vsp-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 726ff79..fa4a698 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -54,7 +54,7 @@ vsp1_count_wpfs() { } vsp1_count_bru_inputs() { - local num_pads=`media-ctl -p | grep 'entity.*bru' | sed 's/.*(\([0-9]\) pads.*/\1/'` + local num_pads=`$mediactl -d $mdev -p | grep 'entity.*bru' | sed 's/.*(\([0-9]\) pads.*/\1/'` echo $((num_pads-1)) } -- cgit v1.2.3