From: ShinHyung Date: Thu, 17 Jan 2019 08:12:15 +0000 (+0900) Subject: [RAMEN9610-11073][COMMON] ASoC: abox: change the pad retention setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4beaed8aa36501bf18e80085d5042790c0fd4a1e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-11073][COMMON] ASoC: abox: change the pad retention setting The reason for setting GPIO_MODE_DISPAUD_SYS_PWR_REG to 0 is to make GPIO state to a specific value when powering down DISPAUD. The default value of GPIO_MODE_DISPAUD_SYS_PWR_REG is 0, so there is no need to set it. Change-Id: I20832cfdaba9a2f04b0844f77e61b086b756b849 Signed-off-by: ShinHyung --- diff --git a/sound/soc/samsung/abox/abox.c b/sound/soc/samsung/abox/abox.c index 1136c3edf9be..6d640567bc58 100644 --- a/sound/soc/samsung/abox/abox.c +++ b/sound/soc/samsung/abox/abox.c @@ -4806,22 +4806,14 @@ static int abox_cpu_pm_ipc(struct device *dev, bool resume) static void abox_pad_retention(bool retention) { if (retention) { -#ifndef EMULATOR - exynos_pmu_update(GPIO_MODE_ABOX_SYS_PWR_REG, 0x1, 0x1); -#else - update_mask_value(pmu_alive + GPIO_MODE_ABOX_SYS_PWR_REG, - 0x1, 0x1); -#endif + pr_debug("%s:Do not need\n", __func__); } else { #ifndef EMULATOR exynos_pmu_update(PAD_RETENTION_ABOX_OPTION, 0x10000000, 0x10000000); - exynos_pmu_update(GPIO_MODE_ABOX_SYS_PWR_REG, 0x1, 0x1); #else update_mask_value(pmu_alive + PAD_RETENTION_ABOX_OPTION, 0x10000000, 0x10000000); - update_mask_value(pmu_alive + GPIO_MODE_ABOX_SYS_PWR_REG, - 0x1, 0x1); #endif } }