ASoC: sdw_utils: add component_name string to dai_info
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 25 Jun 2025 14:04:28 +0000 (22:04 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 25 Jun 2025 14:13:45 +0000 (15:13 +0100)
commitf792733e08d5f5d44ef76d22bcca7ca45a82d0de
tree2e2136ed57c50e0ec67576a886ba069e7e86735f
parent86731a2a651e58953fc949573895f2fa6d456841
ASoC: sdw_utils: add component_name string to dai_info

Currently the sdw machine driver uses different way to get the
component name from the DAI name for different codecs in the rtd_init
callback. It means that we need to rely on the rtd_init callback to get
the component name. Add an optional component string to the
asoc_sdw_dai_info struct allows the machine driver to get the component
name directly.
The commit adds the component names for the AMP dais for the preparation
to set card->components string for combined speaker configs.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20250625140430.311865-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc_sdw_utils.h
sound/soc/sdw_utils/soc_sdw_utils.c