linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: amd: Replacing component->name with codec_dai->name.
@ 2020-08-07 16:10 Ravulapati Vishnu vardhan rao
  2020-08-10 18:57 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Ravulapati Vishnu vardhan rao @ 2020-08-07 16:10 UTC (permalink / raw)
  Cc: Ravulapati Vishnu vardhan rao, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Akshu Agrawal, Kuninori Morimoto,
	YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

Replacing string compare with "codec_dai->name" instead of comparing with
"codec_dai->component->name" in hw_params because,
Here the component name for codec RT1015 is "i2c-10EC5682:00"
and will never be "rt1015-aif1" as it is codec-dai->name.
So, strcmp() always compares and fails to set the
sysclk,pll,bratio for expected codec-dai="rt1015-aif1".

Signed-off-by: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
---
 sound/soc/amd/acp3x-rt5682-max9836.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 55815fdaa1aa..406526e79af3 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -138,7 +138,7 @@ static int acp3x_1015_hw_params(struct snd_pcm_substream *substream,
 	srate = params_rate(params);
 
 	for_each_rtd_codec_dais(rtd, i, codec_dai) {
-		if (strcmp(codec_dai->component->name, "rt1015-aif"))
+		if (strcmp(codec_dai->name, "rt1015-aif"))
 			continue;
 		ret = snd_soc_dai_set_bclk_ratio(codec_dai, 64);
 		if (ret < 0)
-- 
2.17.1


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

* Re: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name.
  2020-08-07 16:10 [PATCH] ASoC: amd: Replacing component->name with codec_dai->name Ravulapati Vishnu vardhan rao
@ 2020-08-10 18:57 ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2020-08-10 18:57 UTC (permalink / raw)
  To: Ravulapati Vishnu vardhan rao
  Cc: YueHaibing, Akshu Agrawal, Takashi Iwai, open list,
	Liam Girdwood,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	Kuninori Morimoto

On Fri, 7 Aug 2020 21:40:17 +0530, Ravulapati Vishnu vardhan rao wrote:
> Replacing string compare with "codec_dai->name" instead of comparing with
> "codec_dai->component->name" in hw_params because,
> Here the component name for codec RT1015 is "i2c-10EC5682:00"
> and will never be "rt1015-aif1" as it is codec-dai->name.
> So, strcmp() always compares and fails to set the
> sysclk,pll,bratio for expected codec-dai="rt1015-aif1".

Applied to

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

Thanks!

[1/1] ASoC: amd: Replacing component->name with codec_dai->name.
      commit: ea7dc097826b06a9746a2e74c2d6e78d35c98088

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] 8+ messages in thread

* Re: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
  2020-08-06 10:14 Ravulapati Vishnu vardhan rao
  2020-08-06 11:28 ` Mark Brown
@ 2020-08-10 18:57 ` Mark Brown
  1 sibling, 0 replies; 8+ messages in thread
From: Mark Brown @ 2020-08-10 18:57 UTC (permalink / raw)
  To: Ravulapati Vishnu vardhan rao
  Cc: YueHaibing, Akshu Agrawal, Takashi Iwai, open list,
	Liam Girdwood,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	Kuninori Morimoto

On Thu, 6 Aug 2020 15:44:12 +0530, Ravulapati Vishnu vardhan rao wrote:
> Replacing string compare with codec_dai->name instead of comparing with
> codec_dai->component->name in hw_params.

Applied to

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

Thanks!

[1/1] ASoC: amd: Replacing component->name with codec_dai->name.
      commit: ea7dc097826b06a9746a2e74c2d6e78d35c98088

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] 8+ messages in thread

* Re: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
  2020-08-07  8:36   ` RAVULAPATI, VISHNU VARDHAN RAO
@ 2020-08-07 11:54     ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2020-08-07 11:54 UTC (permalink / raw)
  To: RAVULAPATI, VISHNU VARDHAN RAO
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Kuninori Morimoto,
	YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

On Fri, Aug 07, 2020 at 08:36:25AM +0000, RAVULAPATI, VISHNU VARDHAN RAO wrote:
> On Thu, Aug 06, 2020 at 03:44:12PM +0530, Ravulapati Vishnu vardhan rao wrote:

> > Replacing string compare with codec_dai->name instead of comparing 
> > with codec_dai->component->name in hw_params.

> >Why?

> Here the component name for codec RT1015 is "i2c-10EC1015:00" and will never be "rt1015-aif1"
> As it is codec-dai->name so the strcmp always compares and fails to set the sysclk,pll,bratio of expected codec-dai

This should be in the changelog so people can understand why the change
was made.

Please fix your mail client to word wrap within paragraphs at something
substantially less than 80 columns.  Doing this makes your messages much
easier to read and reply to.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* RE: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
  2020-08-06 11:28 ` Mark Brown
  2020-08-07  8:09   ` RAVULAPATI, VISHNU VARDHAN RAO
@ 2020-08-07  8:36   ` RAVULAPATI, VISHNU VARDHAN RAO
  2020-08-07 11:54     ` Mark Brown
  1 sibling, 1 reply; 8+ messages in thread
From: RAVULAPATI, VISHNU VARDHAN RAO @ 2020-08-07  8:36 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Kuninori Morimoto,
	YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list



On Thu, Aug 06, 2020 at 03:44:12PM +0530, Ravulapati Vishnu vardhan rao wrote:

> Replacing string compare with codec_dai->name instead of comparing 
> with codec_dai->component->name in hw_params.

>Why?

Here the component name for codec RT1015 is "i2c-10EC1015:00" and will never be "rt1015-aif1"
As it is codec-dai->name so the strcmp always compares and fails to set the sysclk,pll,bratio of expected codec-dai

Thanks,
Vishnu

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

* RE: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
  2020-08-06 11:28 ` Mark Brown
@ 2020-08-07  8:09   ` RAVULAPATI, VISHNU VARDHAN RAO
  2020-08-07  8:36   ` RAVULAPATI, VISHNU VARDHAN RAO
  1 sibling, 0 replies; 8+ messages in thread
From: RAVULAPATI, VISHNU VARDHAN RAO @ 2020-08-07  8:09 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Kuninori Morimoto,
	YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list



-----Original Message-----
From: Mark Brown <broonie@kernel.org> 
Sent: Thursday, August 6, 2020 4:59 PM
To: RAVULAPATI, VISHNU VARDHAN RAO <Vishnuvardhanrao.Ravulapati@amd.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>; Jaroslav Kysela <perex@perex.cz>; Takashi Iwai <tiwai@suse.com>; Agrawal, Akshu <Akshu.Agrawal@amd.com>; Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>; YueHaibing <yuehaibing@huawei.com>; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... <alsa-devel@alsa-project.org>; open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name

On Thu, Aug 06, 2020 at 03:44:12PM +0530, Ravulapati Vishnu vardhan rao wrote:

> Replacing string compare with codec_dai->name instead of comparing 
> with codec_dai->component->name in hw_params.

>Why?

Here the component name for codec RT1015 is "i2c-10EC5682:00" and will never be "rt1015-aif1"
As it is codec-dai->name so the strcmp always compares and fails to set the sysclk,pll,bratio of expected codec-dai

Thanks,
Vishnu

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

* Re: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
  2020-08-06 10:14 Ravulapati Vishnu vardhan rao
@ 2020-08-06 11:28 ` Mark Brown
  2020-08-07  8:09   ` RAVULAPATI, VISHNU VARDHAN RAO
  2020-08-07  8:36   ` RAVULAPATI, VISHNU VARDHAN RAO
  2020-08-10 18:57 ` Mark Brown
  1 sibling, 2 replies; 8+ messages in thread
From: Mark Brown @ 2020-08-06 11:28 UTC (permalink / raw)
  To: Ravulapati Vishnu vardhan rao
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Akshu Agrawal,
	Kuninori Morimoto, YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

On Thu, Aug 06, 2020 at 03:44:12PM +0530, Ravulapati Vishnu vardhan rao wrote:

> Replacing string compare with codec_dai->name instead of comparing with
> codec_dai->component->name in hw_params.

Why?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* [PATCH] ASoC: amd: Replacing component->name with codec_dai->name
@ 2020-08-06 10:14 Ravulapati Vishnu vardhan rao
  2020-08-06 11:28 ` Mark Brown
  2020-08-10 18:57 ` Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Ravulapati Vishnu vardhan rao @ 2020-08-06 10:14 UTC (permalink / raw)
  Cc: Ravulapati Vishnu vardhan rao, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Akshu Agrawal, Kuninori Morimoto,
	YueHaibing,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

Replacing string compare with codec_dai->name instead of comparing with
codec_dai->component->name in hw_params.

Signed-off-by: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
---
 sound/soc/amd/acp3x-rt5682-max9836.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 55815fdaa1aa..406526e79af3 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -138,7 +138,7 @@ static int acp3x_1015_hw_params(struct snd_pcm_substream *substream,
 	srate = params_rate(params);
 
 	for_each_rtd_codec_dais(rtd, i, codec_dai) {
-		if (strcmp(codec_dai->component->name, "rt1015-aif"))
+		if (strcmp(codec_dai->name, "rt1015-aif"))
 			continue;
 		ret = snd_soc_dai_set_bclk_ratio(codec_dai, 64);
 		if (ret < 0)
-- 
2.17.1


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

end of thread, other threads:[~2020-08-10 18:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 16:10 [PATCH] ASoC: amd: Replacing component->name with codec_dai->name Ravulapati Vishnu vardhan rao
2020-08-10 18:57 ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2020-08-06 10:14 Ravulapati Vishnu vardhan rao
2020-08-06 11:28 ` Mark Brown
2020-08-07  8:09   ` RAVULAPATI, VISHNU VARDHAN RAO
2020-08-07  8:36   ` RAVULAPATI, VISHNU VARDHAN RAO
2020-08-07 11:54     ` Mark Brown
2020-08-10 18:57 ` 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).