ASoC: SOF: Intel: hda: Skip interfaces not supported on a platform
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 4 Apr 2023 09:21:07 +0000 (12:21 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 4 Apr 2023 11:42:35 +0000 (12:42 +0100)
commit4a3b1433a8d384ff8d668b4f8665d6c67dbb30d3
tree3da4bba5974f51ef50da7ab699654a30877404e7
parent28d40e7adfd4108c11c9397c6fe9d9f80fed31e9
ASoC: SOF: Intel: hda: Skip interfaces not supported on a platform

Not all interfaces (SSP/DMIC/HDA/SDW) are available on all platforms.
If the interface is not even supported then there is no point in executing
a probe or query for that interface.

Introduce a simple function (hda_get_interface_mask) to query the
interfaces supported on the platform.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20230404092115.27949-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c