ASoC: Intel: sof_sdw_rt_amp: use dai parameter
authorBard Liao <yung-chuan.liao@linux.intel.com>
Thu, 9 May 2024 16:34:18 +0000 (11:34 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 10 May 2024 06:11:50 +0000 (07:11 +0100)
commit4c11132a886ea93865e205e2d92d810722237b48
tree6b1e35192e03c1744bf2743c70a4963e1234d33d
parent84e0a19adb73d7cec5a43e02f9e2d2aafc5c7176
ASoC: Intel: sof_sdw_rt_amp: use dai parameter

get_codec_name_and_route() get dai name from the first codec dai in a dai
link. However, the dai may not always be the first codec dai. Use the
dai parameter to make sure get_codec_name_and_route() refers to the
correct dai.

Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240509163418.67746-19-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw_rt_amp.c