ASOC:Patch from cirrus to fix sound loss issue
authoryaozm1 <yaozm1@lenovo.com>
Thu, 17 Jan 2019 02:16:48 +0000 (10:16 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:53 +0000 (20:23 +0300)
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,