alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: rt1015: fix i2c communication error
@ 2021-02-22  9:00 jack.yu
  2021-02-22  9:00 ` [PATCH 2/2] ASoC: rt1015: enable BCLK detection after calibration jack.yu
  2021-02-22 16:07 ` [PATCH 1/2] ASoC: rt1015: fix i2c communication error Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: jack.yu @ 2021-02-22  9:00 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, Jack Yu, alsa-devel, lars, kent_chen, kenny_chen,
	derek.fang, allen.cheng, shumingf, peter.chuang, flove,
	sunshine.chao

From: Jack Yu <jack.yu@realtek.com>

Remove 0x100 cache re-sync to solve i2c communication error.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
---
 sound/soc/codecs/rt1015.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c
index 37b5795b00d1..90767490af82 100644
--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -209,6 +209,7 @@ static bool rt1015_volatile_register(struct device *dev, unsigned int reg)
 	case RT1015_VENDOR_ID:
 	case RT1015_DEVICE_ID:
 	case RT1015_PRO_ALT:
+	case RT1015_MAN_I2C:
 	case RT1015_DAC3:
 	case RT1015_VBAT_TEST_OUT1:
 	case RT1015_VBAT_TEST_OUT2:
-- 
2.29.0


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

* [PATCH 2/2] ASoC: rt1015: enable BCLK detection after calibration
  2021-02-22  9:00 [PATCH 1/2] ASoC: rt1015: fix i2c communication error jack.yu
@ 2021-02-22  9:00 ` jack.yu
  2021-02-22 16:07 ` [PATCH 1/2] ASoC: rt1015: fix i2c communication error Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: jack.yu @ 2021-02-22  9:00 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, Jack Yu, alsa-devel, lars, kent_chen, kenny_chen,
	derek.fang, allen.cheng, shumingf, peter.chuang, flove,
	sunshine.chao

From: Jack Yu <jack.yu@realtek.com>

Enable BCLK detection after calibration.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
---
 sound/soc/codecs/rt1015.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c
index 90767490af82..844e4079d176 100644
--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -514,6 +514,7 @@ static void rt1015_calibrate(struct rt1015_priv *rt1015)
 	msleep(300);
 	regmap_write(regmap, RT1015_PWR_STATE_CTRL, 0x0008);
 	regmap_write(regmap, RT1015_SYS_RST1, 0x05F5);
+	regmap_write(regmap, RT1015_CLK_DET, 0x8000);
 
 	regcache_cache_bypass(regmap, false);
 	regcache_mark_dirty(regmap);
-- 
2.29.0


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

* Re: [PATCH 1/2] ASoC: rt1015: fix i2c communication error
  2021-02-22  9:00 [PATCH 1/2] ASoC: rt1015: fix i2c communication error jack.yu
  2021-02-22  9:00 ` [PATCH 2/2] ASoC: rt1015: enable BCLK detection after calibration jack.yu
@ 2021-02-22 16:07 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-02-22 16:07 UTC (permalink / raw)
  To: jack.yu, lgirdwood
  Cc: oder_chiou, alsa-devel, lars, kent_chen, kenny_chen, derek.fang,
	flove, shumingf, peter.chuang, allen.cheng, sunshine.chao

On Mon, 22 Feb 2021 17:00:56 +0800, jack.yu@realtek.com wrote:
> Remove 0x100 cache re-sync to solve i2c communication error.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: rt1015: fix i2c communication error
      commit: 7fb08871c38ba9e871d20d64f3a27409baf7b754
[2/2] ASoC: rt1015: enable BCLK detection after calibration
      commit: 2979ef760e73e2a1a34cd4da5d2c78371dfe1028

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

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

end of thread, other threads:[~2021-02-22 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22  9:00 [PATCH 1/2] ASoC: rt1015: fix i2c communication error jack.yu
2021-02-22  9:00 ` [PATCH 2/2] ASoC: rt1015: enable BCLK detection after calibration jack.yu
2021-02-22 16:07 ` [PATCH 1/2] ASoC: rt1015: fix i2c communication error Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).