[PATCH] ASoC: SOF: imx: fix depends/select IMX_DSP confusion

From: Pierre-Louis Bossart
Date: Wed Apr 22 2020 - 07:21:56 EST


The two IMX targets don't use depends/select in a consistent way and
there's a potential for an unmet dependency. Move the dependency check
to a higher level and select IMX_DSP to avoid builtin/module issues.

Fixes: afb93d716533dd ("ASoC: SOF: imx: Add i.MX8M HW support")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx>
---
sound/soc/sof/imx/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/sof/imx/Kconfig b/sound/soc/sof/imx/Kconfig
index f76660e91382..a11ecc1d56db 100644
--- a/sound/soc/sof/imx/Kconfig
+++ b/sound/soc/sof/imx/Kconfig
@@ -21,7 +21,7 @@ config SND_SOC_SOF_IMX_OF

config SND_SOC_SOF_IMX8_SUPPORT
bool "SOF support for i.MX8"
- depends on IMX_SCU
+ depends on IMX_SCU && IMX_MBOX
help
This adds support for Sound Open Firmware for NXP i.MX8 platforms
Say Y if you have such a device.
@@ -29,7 +29,6 @@ config SND_SOC_SOF_IMX8_SUPPORT

config SND_SOC_SOF_IMX8
tristate
- depends on IMX_SCU
select IMX_DSP
help
This option is not user-selectable but automagically handled by
@@ -37,6 +36,7 @@ config SND_SOC_SOF_IMX8

config SND_SOC_SOF_IMX8M_SUPPORT
bool "SOF support for i.MX8M"
+ depends on IMX_MBOX
help
This adds support for Sound Open Firmware for NXP i.MX8M platforms
Say Y if you have such a device.
@@ -44,7 +44,7 @@ config SND_SOC_SOF_IMX8M_SUPPORT

config SND_SOC_SOF_IMX8M
tristate
- depends on IMX_DSP
+ select IMX_DSP
help
This option is not user-selectable but automagically handled by
'select' statements at a higher level
--
2.20.1


--------------83E0C404AAA0BEDB5B37198B--