From 540861f36095330d08e30ebe479ed00760c4b081 Mon Sep 17 00:00:00 2001 From: "Kevin.xie" Date: Wed, 7 Dec 2022 15:48:43 +0800 Subject: [PATCH] ispsdk: Fix error sc2335 sensor config command on isp daemon. Signed-off-by: Kevin.xie --- package/starfive/ispsdk/isp_ctrl_daemon.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package/starfive/ispsdk/isp_ctrl_daemon.sh b/package/starfive/ispsdk/isp_ctrl_daemon.sh index 31d2c2fa..b8e51a1f 100644 --- a/package/starfive/ispsdk/isp_ctrl_daemon.sh +++ b/package/starfive/ispsdk/isp_ctrl_daemon.sh @@ -2,7 +2,7 @@ ISP_CTRL_NAME=/root/ISP/stf_isp_ctrl # Default sensor -SENSOR_CFG="imx219mipi -a 1" +SENSOR_CFG="imx219mipi -j 0 -a 1" USAGE="Usage: isp_ctrl_daemon.sh [start/stop] [imx219mipi/ov4689mipi/sc2235dvp] &" @@ -20,15 +20,15 @@ fi case "$2" in imx219mipi) - SENSOR_CFG="imx219mipi -a 1" + SENSOR_CFG="imx219mipi -j 0 -a 1" echo "Select sensor imx219" ;; ov4689mipi) - SENSOR_CFG="ov4689mipi -a 1" + SENSOR_CFG="ov4689mipi -j 0 -a 1" echo "Select sensor ov4689" ;; sc2235dvp) - SENSOR_CFG="sc2235dvp -a 0" + SENSOR_CFG="sc2235dvp -i 0 -a 0" echo "Select sensor sc2235" ;; *) @@ -43,20 +43,20 @@ NUM=`ps aux | grep ${ISP_CTRL_NAME} | grep -v grep |wc -l` # If there are less than 1 stf_isp_ctrl, start one. if [ "${NUM}" -lt "1" ];then - ${ISP_CTRL_NAME} -m ${SENSOR_CFG} -j 0 & + ${ISP_CTRL_NAME} -m ${SENSOR_CFG} & # If there are more than 1 stf_isp_ctrl, kill all of them and restart one. elif [ "${NUM}" -gt "1" ];then echo "more than 1 ${ISP_CTRL_NAME},killall & restart ${ISP_CTRL_NAME}" killall -9 $ISP_CTRL_NAME - ${ISP_CTRL_NAME} -m ${SENSOR_CFG} -j 0 & + ${ISP_CTRL_NAME} -m ${SENSOR_CFG} & fi # Kill the zombie stf_isp_ctrl NUM_STAT=`ps aux | grep ${ISP_CTRL_NAME} | grep T | grep -v grep | wc -l` if [ "${NUM_STAT}" -gt "0" ];then killall -9 ${ISP_CTRL_NAME} - ${ISP_CTRL_NAME} -m ${SENSOR_CFG} -j 0 & + ${ISP_CTRL_NAME} -m ${SENSOR_CFG} & fi sleep 5;