[PATCH] ASoC: amd: Replacing component->name with codec_dai->name

RAVULAPATI, VISHNU VARDHAN RAO Vishnuvardhanrao.Ravulapati at amd.com
Fri Aug 7 10:09:35 CEST 2020



-----Original Message-----
From: Mark Brown <broonie at kernel.org> 
Sent: Thursday, August 6, 2020 4:59 PM
To: RAVULAPATI, VISHNU VARDHAN RAO <Vishnuvardhanrao.Ravulapati at amd.com>
Cc: Liam Girdwood <lgirdwood at gmail.com>; Jaroslav Kysela <perex at perex.cz>; Takashi Iwai <tiwai at suse.com>; Agrawal, Akshu <Akshu.Agrawal at amd.com>; Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>; YueHaibing <yuehaibing at huawei.com>; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... <alsa-devel at alsa-project.org>; open list <linux-kernel at 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


More information about the Alsa-devel mailing list