diff mbox

[1/3] vsp-lib: Use the correct media device name to count BRU inputs

Message ID 20170824093043.8606-2-laurent.pinchart@ideasonboard.com (mailing list archive)
State Not Applicable
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Laurent Pinchart Aug. 24, 2017, 9:30 a.m. UTC
Use the media device under test, not the default media0.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 scripts/vsp-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham Aug. 30, 2017, 9:33 a.m. UTC | #1
Hi Laurent,

Thanks for the patch.

On 24/08/17 10:30, Laurent Pinchart wrote:
> Use the media device under test, not the default media0.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Looks good, and looks like this is the only use of media-ctl directly.

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

> ---
>  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 726ff793b2ce..fa4a6984e1bb 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))
>  }
>  
>
diff mbox

Patch

diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 726ff793b2ce..fa4a6984e1bb 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))
 }