ASoC: Intel: sof_sdw: start set codec init function with an adr index
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 12 May 2023 17:33:02 +0000 (12:33 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 15 May 2023 11:11:56 +0000 (20:11 +0900)
commitf0c8d83ab1a3532ebeb1a89acb649be01657aed8
treef55ecb744155b3d91d74565490b7d7f403b4dd6b
parentb06e33aa0ad46bb1cc68c0cec61f86a183f8dd43
ASoC: Intel: sof_sdw: start set codec init function with an adr index

Currently, set_codec_init_func always start with link->adr_d[0] because
we assumed all adr_d on the same link are the same devices. The
assumption is no longer valid when different devices on the same sdw link
are supported.

Fixes: c8db7b50128b ("ASoC: Intel: sof_sdw: support different devices on the same sdw link")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com
Link: https://lore.kernel.org/r/20230512173305.65399-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/intel/boards/sof_sdw.c