]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: amd: Replacing component->name with codec_dai->name.
authorRavulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
Fri, 7 Aug 2020 16:10:17 +0000 (21:40 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 10 Aug 2020 17:42:48 +0000 (18:42 +0100)
commitc8e2d4ac896a943ca3d0f0cbfa99354d9b8255f8
tree3e7b12dbca1f554c587c1ea61b7ac6b0827dda46
parent9de7117e2fe2148b005a99b2db1b22712ef00ee0
ASoC: amd: Replacing component->name with codec_dai->name.

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>
Link: https://lore.kernel.org/r/20200807161046.17932-1-Vishnuvardhanrao.Ravulapati@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp3x-rt5682-max9836.c