ASoC: SOF: Intel: hda: add callback to check SoundWire lcount information
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 11 Nov 2022 04:26:50 +0000 (12:26 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Nov 2022 15:32:05 +0000 (15:32 +0000)
commit625339caaea15c0e69d833227652d2f5b6e365cc
treef15a7632cc4f096b6fc90afe23a5677e31b4e47f
parentaa70a580930a42781f57ac0d8b281ed2f6b0d8ec
ASoC: SOF: Intel: hda: add callback to check SoundWire lcount information

The number of links is stored in different registers depending on the
IP version, add sdw_check_lcount() callback. This callback only checks
that the number of links supported in hardware is compatible with the
number of links exposed in ACPI _DSD properties.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20221111042653.45520-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h
sound/soc/sof/intel/icl.c
sound/soc/sof/intel/mtl.c
sound/soc/sof/intel/shim.h
sound/soc/sof/intel/tgl.c