Skip to content

Commit 04b5e2f

Browse files
ujfalusibroonie
authored andcommitted
ASoC: Intel: sof_sdw_rt_sdca_jack_common: Use name_prefix for -sdca detection
Match against the correct string to decide to add the '-sdca' postfix: instead of codec_dai->name the correct one is component->name_prefix. The component->name_prefix is added previously to the card->components as hs. Fixes: 9a9d31b ("ASoC: Intel: sof_sdw_rt_sdca_jack_common: remove -sdca for new codecs") Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c3c5ac4 commit 04b5e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/intel/boards/sof_sdw_rt_sdca_jack_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *d
109109
return -ENOMEM;
110110

111111
for (i = 0; i < ARRAY_SIZE(need_sdca_suffix); i++) {
112-
if (strstr(codec_dai->name, need_sdca_suffix[i])) {
112+
if (strstr(component->name_prefix, need_sdca_suffix[i])) {
113113
/* Add -sdca suffix for existing UCMs */
114114
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
115115
"%s-sdca", card->components);

0 commit comments

Comments
 (0)