summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-02-13 20:25:43 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-02-13 20:43:47 +0200
commit12cbfe3ec45ba4047570b84ad52ee2ebe954efb3 (patch)
treeff41799dfe34b7c651a86d6301cffd83570ad7e7
parentfc525ce1e82ee643138fbfbc4a82eb60e705eece (diff)
vsp-lib: Initialize __vsp_wpf_index to default value in pipe_reset()
This avoids having to store the index in all pipe configuration functions, as the vast majority of them use WPF.0. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xscripts/vsp-lib.sh19
1 files changed, 1 insertions, 18 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 1fef249..e4d8371 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -367,7 +367,6 @@ pipe_rpf_bru() {
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
__vsp_bru_inputs=$ninputs
- __vsp_wpf_index=0
}
pipe_rpf_bru_uds() {
@@ -377,48 +376,36 @@ pipe_rpf_bru_uds() {
$mediactl -d $mdev -l "'$dev bru':$bru_output -> '$dev uds.0':0 [1]"
$mediactl -d $mdev -l "'$dev uds.0':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_clu() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev clu':0 [1]"
$mediactl -d $mdev -l "'$dev clu':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_hgo() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev hgo':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_hst() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev hst':0 [1]"
$mediactl -d $mdev -l "'$dev hst':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_lut() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev lut':0 [1]"
$mediactl -d $mdev -l "'$dev lut':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_uds() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev uds.0':0 [1]"
$mediactl -d $mdev -l "'$dev uds.0':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_uds_bru() {
@@ -428,16 +415,12 @@ pipe_rpf_uds_bru() {
$mediactl -d $mdev -l "'$dev uds.0':1 -> '$dev bru':0 [1]"
$mediactl -d $mdev -l "'$dev bru':$bru_output -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_sru() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev sru':0 [1]"
$mediactl -d $mdev -l "'$dev sru':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
-
- __vsp_wpf_index=0
}
pipe_rpf_wpf() {
@@ -455,7 +438,7 @@ pipe_reset() {
__vsp_bru_inputs=
__vsp_rpf_format=
- __vsp_wpf_index=
+ __vsp_wpf_index=0
__vsp_wpf_format=
__vsp_pixel_perfect=true
}