common: start the hbtp only when the ro.bootmode is not the charger
In power off mode, the hbtp should not be started. Wrapping it for all corresponding targets. CRs-Fixed: 1060985 Change-Id: I95603370946ad677185be5338f8448bfe788ea35
This commit is contained in:
parent
2f04902012
commit
62afccbe31
|
@ -135,6 +135,15 @@ else
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_hbtp()
|
||||||
|
{
|
||||||
|
# Start the Host based Touch processing but not in the power off mode.
|
||||||
|
bootmode=`getprop ro.bootmode`
|
||||||
|
if [ "charger" != $bootmode ]; then
|
||||||
|
start hbtp
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_6x" | "msm7627a" | "msm7627_surf" | \
|
"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_6x" | "msm7627a" | "msm7627_surf" | \
|
||||||
"qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "qsd8650a_st1x")
|
"qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "qsd8650a_st1x")
|
||||||
|
@ -472,14 +481,14 @@ case "$target" in
|
||||||
"Surf")
|
"Surf")
|
||||||
case "$platform_subtype_id" in
|
case "$platform_subtype_id" in
|
||||||
"1")
|
"1")
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"MTP")
|
"MTP")
|
||||||
case "$platform_subtype_id" in
|
case "$platform_subtype_id" in
|
||||||
"3")
|
"3")
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -1130,7 +1139,7 @@ case "$target" in
|
||||||
#1200p panel is connected to the device.
|
#1200p panel is connected to the device.
|
||||||
dir="/sys/bus/i2c/devices/3-0038"
|
dir="/sys/bus/i2c/devices/3-0038"
|
||||||
if [ ! -d "$dir" ]; then
|
if [ ! -d "$dir" ]; then
|
||||||
start hbtp
|
start_hbtp
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -1342,7 +1351,7 @@ case "$target" in
|
||||||
# Start Host based Touch processing
|
# Start Host based Touch processing
|
||||||
case "$hw_platform" in
|
case "$hw_platform" in
|
||||||
"MTP" | "Surf" | "RCM" )
|
"MTP" | "Surf" | "RCM" )
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# Apply Scheduler and Governor settings for 8917 / 8920
|
# Apply Scheduler and Governor settings for 8917 / 8920
|
||||||
|
@ -1455,7 +1464,7 @@ case "$target" in
|
||||||
# Start Host based Touch processing
|
# Start Host based Touch processing
|
||||||
case "$hw_platform" in
|
case "$hw_platform" in
|
||||||
"MTP" | "Surf" | "RCM" )
|
"MTP" | "Surf" | "RCM" )
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -1765,7 +1774,7 @@ case "$target" in
|
||||||
# Start Host based Touch processing
|
# Start Host based Touch processing
|
||||||
case "$hw_platform" in
|
case "$hw_platform" in
|
||||||
"MTP" | "Surf" | "RCM" | "QRD" )
|
"MTP" | "Surf" | "RCM" | "QRD" )
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -1777,7 +1786,7 @@ case "$target" in
|
||||||
# Start Host based Touch processing
|
# Start Host based Touch processing
|
||||||
case "$hw_platform" in
|
case "$hw_platform" in
|
||||||
"MTP" | "Surf" | "RCM" | "QRD" )
|
"MTP" | "Surf" | "RCM" | "QRD" )
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -2344,7 +2353,7 @@ case "$target" in
|
||||||
|
|
||||||
case "$soc_id" in
|
case "$soc_id" in
|
||||||
"321") #sdm845
|
"321") #sdm845
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# Core control parameters
|
# Core control parameters
|
||||||
|
@ -2538,11 +2547,11 @@ case "$target" in
|
||||||
"QRD")
|
"QRD")
|
||||||
case "$platform_subtype_id" in
|
case "$platform_subtype_id" in
|
||||||
"0")
|
"0")
|
||||||
start hbtp
|
start_hbtp
|
||||||
;;
|
;;
|
||||||
"16")
|
"16")
|
||||||
if [ $platform_major_version -lt 6 ]; then
|
if [ $platform_major_version -lt 6 ]; then
|
||||||
start hbtp
|
start_hbtp
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue