ASoC: Intel: sof_sdw_rt_sdca_jack_common: Use name_prefix for `-sdca` detection
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 13 May 2024 14:07:30 +0000 (17:07 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 14 May 2024 11:08:51 +0000 (12:08 +0100)
commit04b5e2f9a75a3f33f29dec780c1363367642fd73
tree2d8d8988b86c3b4b485a2c8d418ee78e98a443dc
parentc3c5ac4bd7d7019f2e3ad1720572d53226fe656e
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: 9a9d31b149f3 ("ASoC: Intel: sof_sdw_rt_sdca_jack_common: remove -sdca for new codecs")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240513140730.27048-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw_rt_sdca_jack_common.c