ASoC: Intel: sof_sdw: allow HDaudio/HDMI disable
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 6 Jun 2022 20:46:22 +0000 (15:46 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 21:00:08 +0000 (22:00 +0100)
commit8208dd75eb468d1bb90aef52f385e5b3486bb737
tree25cd08cea265caf6fcd429436d609e25c0476c2d
parent93693dcf2a4d7ab6a355f80c14653cd9c27a1422
ASoC: Intel: sof_sdw: allow HDaudio/HDMI disable

For tests, it's rather common to disable the HDaudio links and codecs
in the build. Since we already get a codec_mask parameter indicating
that there are no codecs detected, it's straightforward to skip the
HDMI dailink creation and create a card.

Note that when disabling HDMI, a modified topology without HDMI
pipelines needs to be provided as well.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220606204622.144424-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/Kconfig
sound/soc/intel/boards/sof_sdw.c