Commit 7790bccd authored by Janusz Krzysztofik's avatar Janusz Krzysztofik Committed by Mark Brown

ASoC: ti: ams-delta: Allow it to be test compiled

The driver is now built only when MACH_AMS_DELTA is selected, which
requires a very specific selection of ARCH settings.  As a consequence, it
gets very little attention from build-bots, if not none.

Drop the driver dependency on <asm/mach-types.h>, no longer required since
conversion to snd_soc_register_card() and drop of machine_is_ams_delta().
With that in place, allow the driver to be built in any environment as
long as COMPILE_TEST is selected.  Take care of not selecting
SND_SOC_OMAP_MCBSP if COMMON_CLK is not selected.
Signed-off-by: default avatarJanusz Krzysztofik <jmkrzyszt@gmail.com>
Link: https://lore.kernel.org/r/20231008135601.542356-1-jmkrzyszt@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fc4db7a
...@@ -125,8 +125,9 @@ config SND_SOC_OMAP_ABE_TWL6040 ...@@ -125,8 +125,9 @@ config SND_SOC_OMAP_ABE_TWL6040
config SND_SOC_OMAP_AMS_DELTA config SND_SOC_OMAP_AMS_DELTA
tristate "SoC Audio support for Amstrad E3 (Delta) videophone" tristate "SoC Audio support for Amstrad E3 (Delta) videophone"
depends on MACH_AMS_DELTA && TTY depends on MACH_AMS_DELTA || COMPILE_TEST
select SND_SOC_OMAP_MCBSP depends on TTY
select SND_SOC_OMAP_MCBSP if COMMON_CLK
select SND_SOC_CX20442 select SND_SOC_CX20442
help help
Say Y or M if you want to add support for SoC audio device Say Y or M if you want to add support for SoC audio device
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include <sound/soc.h> #include <sound/soc.h>
#include <sound/jack.h> #include <sound/jack.h>
#include <asm/mach-types.h>
#include <linux/platform_data/asoc-ti-mcbsp.h> #include <linux/platform_data/asoc-ti-mcbsp.h>
#include "omap-mcbsp.h" #include "omap-mcbsp.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment