Skip to contentSkip to conversation

ASoC: rt298: fix wrong setting of gpio2_en

PATCH In review Bard Liao 2 participants 5 messages Oct 21, 2015 – Nov 3, 2015

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/2 ASoC: rt298: fix wrong setting of gpio2_en

The register value to enable gpio2 was incorrect. So fix it.

---
 sound/soc/codecs/rt298.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt298.c +1 -1
index 56e5e1a..b3f795c 100644
@@ -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);
 
Signature · 1 line
1.8.1.1.439.g50a6b54
author
#1 lore raw

PATCH 2/2 ASoC: rt298: fix remove unnedded clk setting

The bit is no longer present. So remove it.

---
 sound/soc/codecs/rt298.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rt298.c +0 -2
index b3f795c..30c6de6 100644
@@ -855,8 +855,6 @@ static int rt298_set_dai_sysclk(struct snd_soc_dai *dai,
 		snd_soc_update_bits(codec,
 			RT298_I2S_CTRL2, 0x0100, 0x0100);
 		snd_soc_update_bits(codec,
-			RT298_PLL_CTRL, 0x4, 0x4);
-		snd_soc_update_bits(codec,
 			RT298_PLL_CTRL1, 0x20, 0x0);
 	}
 
Signature · 1 line
1.8.1.1.439.g50a6b54
maintainer
#2 lore raw

Applied "ASoC: rt298: fix remove unnedded clk setting" to the asoc tree

The patch

ASoC: rt298: fix remove unnedded clk setting

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 38b409d66fa84e91afd5340fd772609185b20fa9 Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Wed, 21 Oct 2015 16:18:19 +0800
Subject: [PATCH] ASoC: rt298: fix remove unnedded clk setting

The bit is no longer present. So remove it.

---
 sound/soc/codecs/rt298.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rt298.c +0 -2
index ef8e23a..f00fe02 100644
@@ -856,8 +856,6 @@ static int rt298_set_dai_sysclk(struct snd_soc_dai *dai,
 		snd_soc_update_bits(codec,
 			RT298_I2S_CTRL2, 0x0100, 0x0100);
 		snd_soc_update_bits(codec,
-			RT298_PLL_CTRL, 0x4, 0x4);
-		snd_soc_update_bits(codec,
 			RT298_PLL_CTRL1, 0x20, 0x0);
 	}
 
Signature · 1 line
2.6.1
maintainer
#3 lore raw

Applied "ASoC: rt298: fix remove unnedded clk setting" to the asoc tree

In reply to Bard Liao

The patch

ASoC: rt298: fix remove unnedded clk setting

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 38b409d66fa84e91afd5340fd772609185b20fa9 Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Wed, 21 Oct 2015 16:18:19 +0800
Subject: [PATCH] ASoC: rt298: fix remove unnedded clk setting

The bit is no longer present. So remove it.

---
 sound/soc/codecs/rt298.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rt298.c +0 -2
index ef8e23aab2d3..f00fe02d34ab 100644
@@ -856,8 +856,6 @@ static int rt298_set_dai_sysclk(struct snd_soc_dai *dai,
 		snd_soc_update_bits(codec,
 			RT298_I2S_CTRL2, 0x0100, 0x0100);
 		snd_soc_update_bits(codec,
-			RT298_PLL_CTRL, 0x4, 0x4);
-		snd_soc_update_bits(codec,
 			RT298_PLL_CTRL1, 0x20, 0x0);
 	}
 
Signature · 1 line
2.6.2
maintainer
#4 lore raw

Applied "ASoC: rt298: fix wrong setting of gpio2_en" to the asoc tree

In reply to Bard Liao

The patch

ASoC: rt298: fix wrong setting of gpio2_en

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From f8f2dc4a7127725383c93b501fcc4e47871b0a9d Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Wed, 21 Oct 2015 16:18:18 +0800
Subject: [PATCH] ASoC: rt298: fix wrong setting of gpio2_en

The register value to enable gpio2 was incorrect. So fix it.

---
 sound/soc/codecs/rt298.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt298.c +1 -1
index d3e30a6..f823eb5 100644
@@ -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);
 
Signature · 1 line
2.6.1