Skip to content

Commit 7790bcc

Browse files
jkrzysztbroonie
authored andcommitted
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: Janusz Krzysztofik <jmkrzyszt@gmail.com> Link: https://lore.kernel.org/r/20231008135601.542356-1-jmkrzyszt@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4fc4db7 commit 7790bcc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

sound/soc/ti/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ config SND_SOC_OMAP_ABE_TWL6040
125125

126126
config SND_SOC_OMAP_AMS_DELTA
127127
tristate "SoC Audio support for Amstrad E3 (Delta) videophone"
128-
depends on MACH_AMS_DELTA && TTY
129-
select SND_SOC_OMAP_MCBSP
128+
depends on MACH_AMS_DELTA || COMPILE_TEST
129+
depends on TTY
130+
select SND_SOC_OMAP_MCBSP if COMMON_CLK
130131
select SND_SOC_CX20442
131132
help
132133
Say Y or M if you want to add support for SoC audio device

sound/soc/ti/ams-delta.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <sound/soc.h>
1717
#include <sound/jack.h>
1818

19-
#include <asm/mach-types.h>
20-
2119
#include <linux/platform_data/asoc-ti-mcbsp.h>
2220

2321
#include "omap-mcbsp.h"

0 commit comments

Comments
 (0)