diff options
author | 2020-07-17 16:13:34 -0500 | |
---|---|---|
committer | 2020-07-20 16:08:21 +0100 | |
commit | 15ef2ea035db7bcb9a9d0bf3747fbb7dde67dd97 (patch) | |
tree | 202e3be9cdfaef46ce824c9278f44c023fc29aa4 /sound/soc/intel/boards/sof_sdw_hdmi.c | |
parent | ASoC: Intel: sof_sdw_rt711: remove properties in card remove (diff) | |
download | linux-dev-15ef2ea035db7bcb9a9d0bf3747fbb7dde67dd97.tar.xz linux-dev-15ef2ea035db7bcb9a9d0bf3747fbb7dde67dd97.zip |
ASoC: Intel: sof_sdw: add support for systems without i915 audio
Extend the generic SOF Soundwire machine driver to support systems where
iDisp HDMI/DP audio codec is disabled for some reason (i915 driver
disabled, HDMI/DP implemented with a discrete GPU, etc). Switch codecs
to SoC dummy in the affected DAI links. This allows to reuse existing
topologies for this case.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Link: https://lore.kernel.org/r/20200717211337.31956-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw_hdmi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/sof_sdw_hdmi.c b/sound/soc/intel/boards/sof_sdw_hdmi.c index 0654b38a7e0d..72316d34eed6 100644 --- a/sound/soc/intel/boards/sof_sdw_hdmi.c +++ b/sound/soc/intel/boards/sof_sdw_hdmi.c @@ -52,6 +52,9 @@ int sof_sdw_hdmi_card_late_probe(struct snd_soc_card *card) int err, i = 0; char jack_name[NAME_SIZE]; + if (!ctx->idisp_codec) + return 0; + pcm = list_first_entry(&ctx->hdmi_pcm_list, struct hdmi_pcm, head); component = pcm->codec_dai->component; |