Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: rt298: fix wrong setting of gpio2_en
@ 2015-10-21  8:18 Bard Liao
  2015-10-21  8:18 ` [PATCH 2/2] ASoC: rt298: fix remove unnedded clk setting Bard Liao
  2015-10-21 12:34 ` Applied "ASoC: rt298: fix wrong setting of gpio2_en" " Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Bard Liao @ 2015-10-21  8:18 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, alsa-devel, lars, john.lin, ramesh.babu, Bard Liao,
	senthilnathanx.veppur, flove

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 --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);
 
-- 
1.8.1.1.439.g50a6b54

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-03 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21  8:18 [PATCH 1/2] ASoC: rt298: fix wrong setting of gpio2_en Bard Liao
2015-10-21  8:18 ` [PATCH 2/2] ASoC: rt298: fix remove unnedded clk setting Bard Liao
2015-10-21 12:34   ` Applied "ASoC: rt298: fix remove unnedded clk setting" to the asoc tree Mark Brown
2015-11-03 15:15   ` Mark Brown
2015-10-21 12:34 ` Applied "ASoC: rt298: fix wrong setting of gpio2_en" " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox