Skip to contentSkip to conversation

ASoC: rt5645: Fix mask for setting RT5645_DMIC_2_DP_GPIO12 bit

PATCH Applied Axel Lin 2 participants 2 messages Apr 21, 2015 – Apr 27, 2015

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: rt5645: Fix mask for setting RT5645_DMIC_2_DP_GPIO12 bit

Current code uses wrong mask when setting RT5645_DMIC_2_DP_GPIO12 bit, fix it.

---
Hi Bard,
I don't have the h/w to test, so please review and test this patch. Thanks,
Axel

 sound/soc/codecs/rt5645.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5645.c +1 -1
index 69528ae..a249f65 100644
@@ -2770,7 +2770,7 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
 
 		case RT5645_DMIC_DATA_GPIO12:
 			regmap_update_bits(rt5645->regmap, RT5645_DMIC_CTRL1,
-				RT5645_DMIC_1_DP_MASK, RT5645_DMIC_2_DP_GPIO12);
+				RT5645_DMIC_2_DP_MASK, RT5645_DMIC_2_DP_GPIO12);
 			regmap_update_bits(rt5645->regmap, RT5645_GPIO_CTRL1,
 				RT5645_GP12_PIN_MASK,
 				RT5645_GP12_PIN_DMIC2_SDA);
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Axel Lin

Current code uses wrong mask when setting RT5645_DMIC_2_DP_GPIO12 bit, fix it.

Applied, thanks.