All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320
@ 2022-05-20  9:02 shumingf
  2022-05-20 14:24 ` Pierre-Louis Bossart
  2022-05-20 16:58 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: shumingf @ 2022-05-20  9:02 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, jack.yu, alsa-devel, lars, derek.fang, bard.liao,
	Shuming Fan, flove, pierre-louis.bossart

From: Shuming Fan <shumingf@realtek.com>

The driver missed the default value of register 0xc320.
This patch adds that default value to avoid the error messages
when the driver went to suspend mode already.

BugLink: https://github.com/thesofproject/linux/issues/3651
Signed-off-by: Shuming Fan <shumingf@realtek.com>
---
 sound/soc/codecs/rt1308-sdw.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/rt1308-sdw.h b/sound/soc/codecs/rt1308-sdw.h
index c5ce75666dcc..6668e19d85d4 100644
--- a/sound/soc/codecs/rt1308-sdw.h
+++ b/sound/soc/codecs/rt1308-sdw.h
@@ -140,6 +140,7 @@ static const struct reg_default rt1308_reg_defaults[] = {
 	{ 0x3008, 0x02 },
 	{ 0x300a, 0x00 },
 	{ 0xc003 | (RT1308_DAC_SET << 4), 0x00 },
+	{ 0xc000 | (RT1308_POWER << 4), 0x00 },
 	{ 0xc001 | (RT1308_POWER << 4), 0x00 },
 	{ 0xc002 | (RT1308_POWER << 4), 0x00 },
 };
-- 
2.35.3


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

* Re: [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320
  2022-05-20  9:02 [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320 shumingf
@ 2022-05-20 14:24 ` Pierre-Louis Bossart
  2022-05-20 16:58 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 14:24 UTC (permalink / raw)
  To: shumingf, broonie, lgirdwood
  Cc: oder_chiou, jack.yu, alsa-devel, lars, derek.fang, flove,
	bard.liao, pierre-louis.bossart



On 5/20/22 04:02, shumingf@realtek.com wrote:
> From: Shuming Fan <shumingf@realtek.com>
> 
> The driver missed the default value of register 0xc320.
> This patch adds that default value to avoid the error messages
> when the driver went to suspend mode already.
> 
> BugLink: https://github.com/thesofproject/linux/issues/3651
> Signed-off-by: Shuming Fan <shumingf@realtek.com>

Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> ---
>  sound/soc/codecs/rt1308-sdw.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/soc/codecs/rt1308-sdw.h b/sound/soc/codecs/rt1308-sdw.h
> index c5ce75666dcc..6668e19d85d4 100644
> --- a/sound/soc/codecs/rt1308-sdw.h
> +++ b/sound/soc/codecs/rt1308-sdw.h
> @@ -140,6 +140,7 @@ static const struct reg_default rt1308_reg_defaults[] = {
>  	{ 0x3008, 0x02 },
>  	{ 0x300a, 0x00 },
>  	{ 0xc003 | (RT1308_DAC_SET << 4), 0x00 },
> +	{ 0xc000 | (RT1308_POWER << 4), 0x00 },
>  	{ 0xc001 | (RT1308_POWER << 4), 0x00 },
>  	{ 0xc002 | (RT1308_POWER << 4), 0x00 },
>  };

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

* Re: [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320
  2022-05-20  9:02 [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320 shumingf
  2022-05-20 14:24 ` Pierre-Louis Bossart
@ 2022-05-20 16:58 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-05-20 16:58 UTC (permalink / raw)
  To: shumingf, lgirdwood
  Cc: oder_chiou, jack.yu, alsa-devel, lars, derek.fang, bard.liao,
	flove, pierre-louis.bossart

On Fri, 20 May 2022 17:02:05 +0800, shumingf@realtek.com wrote:
> From: Shuming Fan <shumingf@realtek.com>
> 
> The driver missed the default value of register 0xc320.
> This patch adds that default value to avoid the error messages
> when the driver went to suspend mode already.
> 
> 
> [...]

Applied to

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

Thanks!

[1/1] ASoC: rt1308-sdw: add the default value of register 0xc320
      commit: affa9983e7cbac8cbe2596975efacdbdf0eb18e9

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:[~2022-05-20 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20  9:02 [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320 shumingf
2022-05-20 14:24 ` Pierre-Louis Bossart
2022-05-20 16:58 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.