From d5353e42885371f712064e3a87e6616fd0f2d4e3 Mon Sep 17 00:00:00 2001 From: yaozm1 Date: Thu, 17 Jan 2019 10:16:48 +0800 Subject: [PATCH] ASOC:Patch from cirrus to fix sound loss issue extcon: madera: Don't clamp manually on cs47l35 There is no reason to manually clamp on cs47l35 the automatic clamping is perfectly functional. This fix the issue for sound loss during voice call when hs is frequently inserted/removed. Change-Id: I0fbd9113f7670d236f93b04034cfc385fdf736cc Signed-off-by: yaozm1 Reviewed-on: https://gerrit.mot.com/1295665 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/extcon/extcon-madera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/extcon/extcon-madera.c b/drivers/extcon/extcon-madera.c index 1a00044d2d48..863b031fc465 100755 --- a/drivers/extcon/extcon-madera.c +++ b/drivers/extcon/extcon-madera.c @@ -794,6 +794,7 @@ static void madera_extcon_hp_clamp(struct madera_extcon *info, bool clamp) switch (madera->type) { case CS47L35: + break; case CS47L85: case WM1840: edre_reg = MADERA_EDRE_MANUAL; @@ -847,6 +848,7 @@ static void madera_extcon_hp_clamp(struct madera_extcon *info, bool clamp) switch (madera->type) { case CS47L35: + break; case CS47L85: case WM1840: ret = regmap_update_bits(madera->regmap, -- 2.20.1