]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 1 Nov 2019 17:30:39 +0000 (12:30 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 4 Nov 2019 13:24:02 +0000 (13:24 +0000)
commitd3d8f9d5a7bfb07465c8b3827c5b08d195448a7a
tree3bd271faefdcfa09bb9bf9b2ad89d5249af8698f
parent629eaae09966ab4c2a5391b4fd02f5527c533206
ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency

updated solution to the problem reported with randconfig:

CONFIG_SND_SOC_SOF_IMX depends on CONFIG_SND_SOC_SOF, but is in
turn referenced by the sof-of-dev driver. This creates a reverse
dependency that manifests in a link error when CONFIG_SND_SOC_SOF_OF
is built-in but CONFIG_SND_SOC_SOF_IMX=m:

sound/soc/sof/sof-of-dev.o:(.data+0x118): undefined reference to `sof_imx8_ops'

use def_trisate to propagate the right settings without select.

Fixes: 7b722d1e527e ("ASoC: SOF: imx8: Fix COMPILE_TEST error")
Fixes: d719de18270b ("ASoC: SOF: imx: Add i.MX8 HW support")
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191101173045.27099-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/Kconfig