Skip to content

Commit ea7dc09

Browse files
Ravulapati Vishnu vardhan raobroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 58ff5f4 commit ea7dc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/amd/acp3x-rt5682-max9836.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static int acp3x_1015_hw_params(struct snd_pcm_substream *substream,
138138
srate = params_rate(params);
139139

140140
for_each_rtd_codec_dais(rtd, i, codec_dai) {
141-
if (strcmp(codec_dai->component->name, "rt1015-aif"))
141+
if (strcmp(codec_dai->name, "rt1015-aif"))
142142
continue;
143143
ret = snd_soc_dai_set_bclk_ratio(codec_dai, 64);
144144
if (ret < 0)

0 commit comments

Comments
 (0)