diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-27 15:54:44 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-06-19 15:26:01 +0300 |
commit | e0b6971cb5e15529396b0c4795058dec2329f97e (patch) | |
tree | 7e4f5089cde972cb5503636ab0636d1042e97465 /scripts/vsp-lib.sh | |
parent | b5f052feec329a39d4f176ef07f9b99370c7583d (diff) |
vsp-lib: Create a function to get subdev from entity name
And use the function in the vsp-runner script instead of duplicating the
same code in multiple locations.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-x | scripts/vsp-lib.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index d48108a..0e7fa5a 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -31,6 +31,10 @@ vsp1_count_bru_inputs() { echo $((num_pads-1)) } +vsp1_entity_subdev() { + $mediactl -d $mdev -e "$dev $1" +} + vsp1_entity_get_size() { entity=$1 pad=$2 |