未验证 提交 dfa7b01d 编写于 作者: D David Ward 提交者: Mark Brown

ASoC: rt286: Fix upper byte in DMIC2 configuration

This HDA verb sets the upper byte of the Configuration Default register, so
only an 8-bit value should be used. For the rt298, the same fix was applied
in commit f8f2dc4a ("ASoC: rt298: fix wrong setting of gpio2_en").
Signed-off-by: NDavid Ward <david.ward@gatech.edu>
Link: https://lore.kernel.org/r/20210418134658.4333-2-david.ward@gatech.eduReviewed-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a38fd874
...@@ -1204,7 +1204,7 @@ static int rt286_i2c_probe(struct i2c_client *i2c, ...@@ -1204,7 +1204,7 @@ static int rt286_i2c_probe(struct i2c_client *i2c,
mdelay(10); mdelay(10);
if (!rt286->pdata.gpio2_en) if (!rt286->pdata.gpio2_en)
regmap_write(rt286->regmap, RT286_SET_DMIC2_DEFAULT, 0x4000); regmap_write(rt286->regmap, RT286_SET_DMIC2_DEFAULT, 0x40);
else else
regmap_write(rt286->regmap, RT286_SET_DMIC2_DEFAULT, 0); regmap_write(rt286->regmap, RT286_SET_DMIC2_DEFAULT, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册