package: v4l2_test: Add ss0 & ss1 in pipeline script

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
This commit is contained in:
mason.huo
2022-08-16 15:19:27 +08:00
parent 8975760f59
commit 02e6028d21
+34 -132
View File
@@ -10,14 +10,13 @@ USAGE="Usage:
interface_type One of the following:
dvp
csiphy0
csiphy1
sensor_type One of the following:
VIN
ISP0
ISP1
ISP0RAW
ISP1RAW
ISP0SS0
ISP0SS1
action One of the following:
start
@@ -121,17 +120,15 @@ case $interface_type in
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [1]"
;;
ISP1)
echo "DVP ISP1 enable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
ISP0SS0)
echo "DVP SS0 enable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':2 -> 'stf_vin0_isp0_ss0':0 [1]"
;;
ISP1RAW)
echo "DVP ISP1RAW enable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
ISP0SS1)
echo "DVP SS1 enable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':3 -> 'stf_vin0_isp0_ss1':0 [1]"
;;
*)
echo "$USAGE"
@@ -160,17 +157,15 @@ case $interface_type in
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [0]"
;;
ISP1)
echo "DVP ISP1 disable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
ISP0SS0)
echo "DVP SS0 disable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':1 -> 'stf_vin0_isp0_ss0':0 [0]"
;;
ISP1RAW)
echo "DVP ISP1RAW disable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
ISP0SS1)
echo "DVP SS1 disable pipeline:"
media-ctl -d "$devname" -vl "'stf_dvp0':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':1 -> 'stf_vin0_isp0_ss1':0 [0]"
;;
*)
echo "$USAGE"
@@ -208,19 +203,17 @@ case $interface_type in
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [1]"
;;
ISP1)
echo "csiphy0 CSIRX0 ISP1 enable pipeline:"
ISP0SS0)
echo "csiphy0 CSIRX0 SS0 enable pipeline:"
# media-ctl -d "$devname" -vl "'stf_csiphy0':1 -> 'stf_csi0':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':2 -> 'stf_vin0_isp0_ss0':0 [1]"
;;
ISP1RAW)
echo "csiphy0 CSIRX0 ISP1RAW enable pipeline:"
ISP0SS1)
echo "csiphy0 CSIRX0 SS0 enable pipeline:"
# media-ctl -d "$devname" -vl "'stf_csiphy0':1 -> 'stf_csi0':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':3 -> 'stf_vin0_isp0_ss1':0 [1]"
;;
*)
@@ -251,19 +244,17 @@ case $interface_type in
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [0]"
;;
ISP1)
echo "csiphy0 CSIRX0 ISP1 disable pipeline:"
ISP0SS0)
echo "csiphy0 CSIRX0 SS0 disable pipeline:"
# media-ctl -d "$devname" -vl "'stf_csiphy0':1 -> 'stf_csi0':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':2 -> 'stf_vin0_isp0_ss0':0 [0]"
;;
ISP1RAW)
echo "csiphy0 CSIRX0 ISP1RAW disable pipeline:"
ISP0SS1)
echo "csiphy0 CSIRX0 SS1 disable pipeline:"
# media-ctl -d "$devname" -vl "'stf_csiphy0':1 -> 'stf_csi0':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi0':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':3 -> 'stf_vin0_isp0_ss1':0 [0]"
;;
*)
@@ -278,95 +269,6 @@ case $interface_type in
;;
esac
;;
csiphy1)
case $action in
start)
# media-ctl -d "$devname" -vl "'ov4689 2-0036':0 -> 'stf_csiphy1':0 [1]"
case $sensor_type in
VIN)
echo "csiphy1 CSIRX0 vin enable pipeline:"
;;
ISP0)
echo "csiphy1 CSIRX1 ISP0 enable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':1 -> 'stf_vin0_isp0':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [1]"
;;
ISP0RAW)
echo "csiphy1 CSIRX1 ISP0RAW enable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp0':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [1]"
;;
ISP1)
echo "csiphy1 CSIRX1 ISP1 enable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
;;
ISP1RAW)
echo "csiphy1 CSIRX1 ISP1RAW enable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [1]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp1':0 [1]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [1]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [1]"
;;
*)
echo "$USAGE"
exit 1
;;
esac
;;
stop)
# media-ctl -d "$devname" -vl "'ov4689 0-0036':0 -> 'stf_csiphy0':0 [0]"
case $sensor_type in
VIN)
echo "csiphy1 CSIRX0 vin disable pipeline:"
;;
ISP0)
echo "csiphy1 CSIRX1 ISP0 disable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':1 -> 'stf_vin0_isp0':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [0]"
;;
ISP0RAW)
echo "csiphy1 CSIRX1 ISP0RAW disable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp0':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp0':6 -> 'stf_vin0_isp0_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp0':1 -> 'stf_vin0_isp0_video1':0 [0]"
;;
ISP1)
echo "csiphy1 CSIRX1 ISP1 disable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
;;
ISP1RAW)
echo "csiphy1 CSIRX1 ISP1RAW disable pipeline:"
media-ctl -d "$devname" -vl "'stf_csiphy1':1 -> 'stf_csi1':0 [0]"
media-ctl -d "$devname" -vl "'stf_csi1':1 -> 'stf_isp1':0 [0]"
media-ctl -d "$devname" -vl "'stf_isp1':1 -> 'stf_vin0_isp1_raw':0 [0]"
# media-ctl -d "$devname" -vl "'stf_vin0_isp1':1 -> 'stf_vin0_isp1_video2':0 [0]"
;;
*)
echo "$USAGE"
exit 1
;;
esac
;;
*)
echo "$USAGE"
exit 1
;;
esac
;;
*)
echo "$USAGE"
exit 1