Skip to content

Commit cb0312f

Browse files
plbossartbroonie
authored andcommitted
ASoC: SOF: imx: fix undefined reference issue
make.cross ARCH=mips allyesconfig fails with the following error: sound/soc/sof/sof-of-dev.o:(.data.sof_of_imx8qxp_desc+0x40): undefined reference to `sof_imx8x_ops'. This seems to be a Makefile order issue, solve by using the same structure as for Intel platforms. Fixes: f9ad754 ("ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20200409071832.2039-3-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fe17e6c commit cb0312f

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎sound/soc/sof/imx/Kconfig‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,26 @@ config SND_SOC_SOF_IMX_TOPLEVEL
1111

1212
if SND_SOC_SOF_IMX_TOPLEVEL
1313

14+
config SND_SOC_SOF_IMX_OF
15+
def_tristate SND_SOC_SOF_OF
16+
select SND_SOC_SOF_IMX8 if SND_SOC_SOF_IMX8_SUPPORT
17+
help
18+
This option is not user-selectable but automagically handled by
19+
'select' statements at a higher level
20+
1421
config SND_SOC_SOF_IMX8_SUPPORT
1522
bool "SOF support for i.MX8"
16-
depends on IMX_SCU
17-
select IMX_DSP
1823
help
1924
This adds support for Sound Open Firmware for NXP i.MX8 platforms
2025
Say Y if you have such a device.
2126
If unsure select "N".
2227

2328
config SND_SOC_SOF_IMX8
24-
def_tristate SND_SOC_SOF_OF
25-
depends on SND_SOC_SOF_IMX8_SUPPORT
29+
tristate
30+
depends on IMX_SCU
31+
select IMX_DSP
32+
help
33+
This option is not user-selectable but automagically handled by
34+
'select' statements at a higher level
2635

2736
endif ## SND_SOC_SOF_IMX_IMX_TOPLEVEL

0 commit comments

Comments
 (0)