summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-10-21 16:18:18 +0800
committerMark Brown <broonie@kernel.org>2015-10-21 13:23:43 +0100
commitf8f2dc4a7127725383c93b501fcc4e47871b0a9d (patch)
tree7d64ac153865f61b412430ecef5b9c394735e777
parent7ba6e4ef76c7e43101bd5e0f8987c11a8ed0d325 (diff)
downloadop-kernel-dev-f8f2dc4a7127725383c93b501fcc4e47871b0a9d.zip
op-kernel-dev-f8f2dc4a7127725383c93b501fcc4e47871b0a9d.tar.gz
ASoC: rt298: fix wrong setting of gpio2_en
The register value to enable gpio2 was incorrect. So fix it. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt298.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index d3e30a6..f823eb5 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);
OpenPOWER on IntegriCloud