ASoC: rt5663: Fix the IRQ issue
authorOder Chiou <oder_chiou@realtek.com>
Tue, 6 Jun 2017 06:59:54 +0000 (14:59 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 17:04:52 +0000 (18:04 +0100)
The patch fixed the IRQ issue.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c
sound/soc/codecs/rt5663.h

index a32508d7dcfd8a78e6510dc3db0ef546923a407b..8569e8c7d89402ae986ab63d53dd76d62161663a 100644 (file)
@@ -3141,7 +3141,7 @@ static int rt5663_i2c_probe(struct i2c_client *i2c,
                regmap_update_bits(rt5663->regmap, RT5663_DIG_MISC,
                        RT5663_DIG_GATE_CTRL_MASK, RT5663_DIG_GATE_CTRL_EN);
                regmap_update_bits(rt5663->regmap, RT5663_AUTO_1MRC_CLK,
-                       RT5663_IRQ_POW_SAV_MASK, RT5663_IRQ_POW_SAV_EN);
+                       RT5663_IRQ_MANUAL_MASK, RT5663_IRQ_MANUAL_EN);
                regmap_update_bits(rt5663->regmap, RT5663_IRQ_1,
                        RT5663_EN_IRQ_JD1_MASK, RT5663_EN_IRQ_JD1_EN);
                regmap_update_bits(rt5663->regmap, RT5663_GPIO_1,
index d77fae619f2f118f3e81ee47caa3ff26cd5e4321..4621812c94d8a718c8c80fbae463fd560f4e646c 100644 (file)
 #define RT5663_IRQ_POW_SAV_JD1_SHIFT           14
 #define RT5663_IRQ_POW_SAV_JD1_DIS             (0x0 << 14)
 #define RT5663_IRQ_POW_SAV_JD1_EN              (0x1 << 14)
+#define RT5663_IRQ_MANUAL_MASK                 (0x1 << 8)
+#define RT5663_IRQ_MANUAL_SHIFT                        8
+#define RT5663_IRQ_MANUAL_DIS                  (0x0 << 8)
+#define RT5663_IRQ_MANUAL_EN                   (0x1 << 8)
 
 /* IRQ Control 1 (0x00b6) */
 #define RT5663_EN_CB_JD_MASK                   (0x1 << 3)