(CR):[Kane][audio][factory]kernel:hp and ep switch make no sound
authorzhangjiaquan <zhangjiaquan@huaqin.com>
Thu, 17 Jan 2019 07:55:03 +0000 (02:55 -0500)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:54 +0000 (17:36 +0800)
1,hp and ep switch make no sound

Change-Id: I52454c4488a0dc6e628ae633d9b026a28fde78f4
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
drivers/extcon/extcon-madera.c

index 863b031fc4655ff3a686f8c2f42c2d39703d6ed3..0d4420ac0f9aed60063a9783eb28c5d9fb9b1210 100755 (executable)
@@ -769,7 +769,7 @@ static void madera_jds_timeout_work(struct work_struct *work)
 static void madera_extcon_hp_clamp(struct madera_extcon *info, bool clamp)
 {
        struct madera *madera = info->madera;
-       unsigned int mask, val = 0;
+       unsigned int mask = 0, val = 0;
        unsigned int edre_reg = 0, edre_val = 0;
        unsigned int ep_sel = 0;
        int ret;