ASOC:Patch from cirrus to fix sound loss issue
authoryaozm1 <yaozm1@lenovo.com>
Thu, 17 Jan 2019 02:16:48 +0000 (10:16 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:33 +0000 (17:30 +0800)
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 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1295665
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/extcon/extcon-madera.c

index 1a00044d2d48660c510360b15d0aa2b11b4b8698..863b031fc4655ff3a686f8c2f42c2d39703d6ed3 100755 (executable)
@@ -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,