diff mbox

[1/2] ASoC: rt298: fix wrong setting of gpio2_en

Message ID 1445415499-29200-1-git-send-email-bardliao@realtek.com (mailing list archive)
State Accepted
Commit f8f2dc4a7127725383c93b501fcc4e47871b0a9d
Headers show

Commit Message

Bard Liao Oct. 21, 2015, 8:18 a.m. UTC
The register value to enable gpio2 was incorrect. So fix it.

Signed-off-by: Bard Liao <bardliao@realtek.com>
---
 sound/soc/codecs/rt298.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index 56e5e1a..b3f795c 100644
--- a/sound/soc/codecs/rt298.c
+++ b/sound/soc/codecs/rt298.c
@@ -1217,7 +1217,7 @@  static int rt298_i2c_probe(struct i2c_client *i2c,
 	mdelay(10);
 
 	if (!rt298->pdata.gpio2_en)
-		regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x4000);
+		regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x40);
 	else
 		regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0);