From: Chungwoo Park Date: Mon, 15 Jan 2018 07:06:12 +0000 (+0900) Subject: [COMMON] thermal : Modify check audio status code to 9610. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e0e1ccde9c2051636987afb9b2e82f98dfc7dcc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal : Modify check audio status code to 9610. Change-Id: I2a716447348d608c22c43188b8415d6310004023 Signed-off-by: Chungwoo Park --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 5af713d83649..58fd3771eee8 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -49,6 +49,9 @@ #include #endif #include +#ifdef CONFIG_SND_SOC_SAMSUNG_ABOX +#include +#endif #include "exynos_tmu.h" #include "../thermal_core.h" @@ -191,6 +194,8 @@ static struct acpm_tmu_cap cap; static unsigned int num_of_devices, suspended_count; static bool cp_call_mode; +#ifdef CONFIG_SND_SOC_SAMSUNG_ABOX +#if defined(CONFIG_SOC_EXYNOS9810) static bool is_aud_on(void) { unsigned int val; @@ -199,6 +204,8 @@ static bool is_aud_on(void) return ((val & 0xf) == 0xf); } +#endif +#endif #else static bool suspended; static DEFINE_MUTEX (thermal_suspend_lock); @@ -1772,7 +1779,14 @@ static int exynos_tmu_suspend(struct device *dev) suspended_count++; disable_irq(data->irq); +#ifdef CONFIG_SND_SOC_SAMSUNG_ABOX +#if defined(CONFIG_SOC_EXYNOS9810) cp_call_mode = is_aud_on() && cap.acpm_irq; +#elif defined(CONFIG_SOC_EXYNOS9610) + cp_call_mode = abox_is_on() && cap.acpm_irq; +#endif +#endif + if (cp_call_mode) { if (suspended_count == num_of_devices) { exynos_acpm_tmu_set_cp_call();