2020-05-01 22:58:50 +08:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
|
2019-08-22 00:47:30 +08:00
|
|
|
|
|
|
|
config SND_SOC_SOF_IMX_TOPLEVEL
|
|
|
|
bool "SOF support for NXP i.MX audio DSPs"
|
2019-09-05 14:44:00 +08:00
|
|
|
depends on ARM64|| COMPILE_TEST
|
|
|
|
depends on SND_SOC_SOF_OF
|
2019-08-22 00:47:30 +08:00
|
|
|
help
|
2019-10-04 22:49:31 +08:00
|
|
|
This adds support for Sound Open Firmware for NXP i.MX platforms.
|
|
|
|
Say Y if you have such a device.
|
|
|
|
If unsure select "N".
|
2019-08-22 00:47:30 +08:00
|
|
|
|
|
|
|
if SND_SOC_SOF_IMX_TOPLEVEL
|
|
|
|
|
2020-04-09 15:18:29 +08:00
|
|
|
config SND_SOC_SOF_IMX_OF
|
|
|
|
def_tristate SND_SOC_SOF_OF
|
|
|
|
select SND_SOC_SOF_IMX8 if SND_SOC_SOF_IMX8_SUPPORT
|
2020-04-09 15:18:30 +08:00
|
|
|
select SND_SOC_SOF_IMX8M if SND_SOC_SOF_IMX8M_SUPPORT
|
2020-04-09 15:18:29 +08:00
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
|
|
|
'select' statements at a higher level
|
|
|
|
|
2019-11-02 01:30:39 +08:00
|
|
|
config SND_SOC_SOF_IMX8_SUPPORT
|
|
|
|
bool "SOF support for i.MX8"
|
ASoC: SOF: sort out Kconfig, again
The imx8 config keeps causing issues:
WARNING: unmet direct dependencies detected for SND_SOC_SOF_IMX8M
Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && IMX_DSP [=n]
Selected by [m]:
- SND_SOC_SOF_IMX_OF [=m] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && SND_SOC_SOF_IMX8M_SUPPORT [=y]
This is complicated by two drivers having dependencies on both
platform specific drivers and the SND_SOC_SOF_OF framework code,
and using an somewhat obscure method to build them the same way
as the SOC_SOF_OF symbol (built-in or modular).
My solution now ensures that the two drivers can only be enabled
when the dependencies are met:
- When the platform specific drivers are built-in, everything is
fine, as SOC_SOF_OF is either =y or =m
- When both are loadable modules, it also works, both for Kconfig
and at runtime
- When the hardware drivers are loadable modules or disabled, and
SOC_SOF_OF=y, prevent the IMX_SOF_OF drivers from being turned on,
as this would be broken.
It seems that this is just an elaborate way to describe two tristate
symbols that have straight dependencies, but maybe I'm missing some
subtle point. It seems to always build for me now.
Fixes: fe57a92c8858 ("ASoC: SOF: Add missing dependency on IMX_SCU")
Fixes: afb93d716533 ("ASoC: SOF: imx: Add i.MX8M HW support")
Fixes: cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")
Fixes: afb93d716533dd ("ASoC: SOF: imx: Add i.MX8M HW support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20200428212752.2901778-1-arnd@arndb.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-04-29 05:27:36 +08:00
|
|
|
depends on IMX_SCU=y || IMX_SCU=SND_SOC_SOF_IMX_OF
|
|
|
|
depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_IMX_OF
|
2019-08-22 00:47:30 +08:00
|
|
|
help
|
2019-10-04 22:49:31 +08:00
|
|
|
This adds support for Sound Open Firmware for NXP i.MX8 platforms
|
|
|
|
Say Y if you have such a device.
|
|
|
|
If unsure select "N".
|
2019-08-22 00:47:30 +08:00
|
|
|
|
2019-11-02 01:30:39 +08:00
|
|
|
config SND_SOC_SOF_IMX8
|
2020-04-09 15:18:29 +08:00
|
|
|
tristate
|
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
|
|
|
'select' statements at a higher level
|
2019-11-02 01:30:39 +08:00
|
|
|
|
2020-04-09 15:18:30 +08:00
|
|
|
config SND_SOC_SOF_IMX8M_SUPPORT
|
|
|
|
bool "SOF support for i.MX8M"
|
ASoC: SOF: sort out Kconfig, again
The imx8 config keeps causing issues:
WARNING: unmet direct dependencies detected for SND_SOC_SOF_IMX8M
Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && IMX_DSP [=n]
Selected by [m]:
- SND_SOC_SOF_IMX_OF [=m] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && SND_SOC_SOF_IMX8M_SUPPORT [=y]
This is complicated by two drivers having dependencies on both
platform specific drivers and the SND_SOC_SOF_OF framework code,
and using an somewhat obscure method to build them the same way
as the SOC_SOF_OF symbol (built-in or modular).
My solution now ensures that the two drivers can only be enabled
when the dependencies are met:
- When the platform specific drivers are built-in, everything is
fine, as SOC_SOF_OF is either =y or =m
- When both are loadable modules, it also works, both for Kconfig
and at runtime
- When the hardware drivers are loadable modules or disabled, and
SOC_SOF_OF=y, prevent the IMX_SOF_OF drivers from being turned on,
as this would be broken.
It seems that this is just an elaborate way to describe two tristate
symbols that have straight dependencies, but maybe I'm missing some
subtle point. It seems to always build for me now.
Fixes: fe57a92c8858 ("ASoC: SOF: Add missing dependency on IMX_SCU")
Fixes: afb93d716533 ("ASoC: SOF: imx: Add i.MX8M HW support")
Fixes: cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")
Fixes: afb93d716533dd ("ASoC: SOF: imx: Add i.MX8M HW support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20200428212752.2901778-1-arnd@arndb.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-04-29 05:27:36 +08:00
|
|
|
depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_OF
|
2020-04-09 15:18:30 +08:00
|
|
|
help
|
|
|
|
This adds support for Sound Open Firmware for NXP i.MX8M platforms
|
|
|
|
Say Y if you have such a device.
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_IMX8M
|
|
|
|
tristate
|
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
|
|
|
'select' statements at a higher level
|
|
|
|
|
2019-08-22 00:47:30 +08:00
|
|
|
endif ## SND_SOC_SOF_IMX_IMX_TOPLEVEL
|