Skip to content

Commit 16373f3

Browse files
bardliaobroonie
authored andcommitted
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>
1 parent e9fcbaf commit 16373f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/intel/boards/sof_sdw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ static int get_slave_info(const struct snd_soc_acpi_link_adr *adr_link,
961961
cpu_dai_id[index++] = ffs(adr_link->mask) - 1;
962962
if (!adr_d->endpoints->aggregated || no_aggregation) {
963963
*cpu_dai_num = 1;
964+
*codec_num = 1;
964965
*group_id = 0;
965966
return 0;
966967
}

0 commit comments

Comments
 (0)