]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: sof-rt5682: fix undefined references with Baytrail-only support
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 28 May 2019 16:28:22 +0000 (11:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2019 15:36:41 +0000 (16:36 +0100)
commitc72e858e3763742591f6dcfc7c7b6575e23a0809
treef3c2a5f817b813ddaa03fb10b423f6ea8663ca23
parenta18cfdc08bb2b5db022ece907e0c18af3297bd74
ASoC: Intel: sof-rt5682: fix undefined references with Baytrail-only support

The sof-rt5682 machine driver supports both legacy Baytrail devices
and more recent ApolloLake/CometLake platforms. When only Baytrail is
selected, the compilation fails with the following errors:

ERROR: "hdac_hdmi_jack_port_init"
[sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!

ERROR: "hdac_hdmi_jack_init"
[sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!

Fix by selecting SND_SOC_HDAC_HDMI unconditionally. The code for HDMI
support is not reachable on Baytrail so this change has no functional
impact.

Fixes: 78d9a4e00b97 ("ASoC: Intel: add sof-rt5682 machine driver")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/Kconfig