ASoC: Intel: sof_sdw: set codec_num = 1 if the device is not aggregated
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 19 Apr 2023 19:55:22 +0000 (14:55 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 20 Apr 2023 11:51:52 +0000 (12:51 +0100)
commit16373f30777f45823fa68e850b230fa2ef9d7e92
tree7347e17eeead8796ef9cdb7c07f9d6d208cc3846
parente9fcbaff5fb871f1a10f09d7d1a4cd13c923e280
ASoC: Intel: sof_sdw: set codec_num = 1 if the device is not aggregated

We assume adr_link->num_adr = 1 if a device is not aggregated. However,
the assumption is not valid if there are different type devices on the
same soundwire 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: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20230419195524.46995-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c