summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-05-25 17:03:01 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-08-30 19:13:10 +0300
commite25d54d255788fb37af69a05beec91976eeb1984 (patch)
tree27a5682d0b562eefe6d5daa2b1995d9ef3c2bbe8
parent447d55ec0317c182c0df7f0d4f8b7c567eace57b (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
-rwxr-xr-xscripts/vsp-lib.sh2
1 files changed, 1 insertions, 1 deletions
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))
}