From: Bard Liao Date: Wed, 21 Oct 2015 08:18:18 +0000 (+0800) Subject: ASoC: rt298: fix wrong setting of gpio2_en X-Git-Tag: firefly_0821_release~176^2~896^2^2^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8f2dc4a7127725383c93b501fcc4e47871b0a9d;p=firefly-linux-kernel-4.4.55.git ASoC: rt298: fix wrong setting of gpio2_en The register value to enable gpio2 was incorrect. So fix it. Signed-off-by: Bard Liao Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c index d3e30a645ae3..f823eb502367 100644 --- a/sound/soc/codecs/rt298.c +++ b/sound/soc/codecs/rt298.c @@ -1214,7 +1214,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);