ASoC: omap: Enable COMPILE_TEST build for DT platforms
Mark Brown
maintainerPATCH 1/1 ASoC: omap: Enable COMPILE_TEST build for DT platforms
From: Mark Brown <[email protected]>
The DT platforms don't have any source dependency on any OMAP stuff so allow them to be built when COMPILE_TEST is enabled.
--- sound/soc/omap/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/omap/Kconfig +3 -3
@@ -1,6 +1,6 @@ config SND_OMAP_SOC tristate "SoC Audio for the Texas Instruments OMAP chips" - depends on ARCH_OMAP && DMA_OMAP + depends on (ARCH_OMAP && DMA_OMAP) || COMPILE_TEST select SND_SOC_DMAENGINE_PCM config SND_OMAP_SOC_DMIC
@@ -26,7 +26,7 @@ config SND_OMAP_SOC_N810 config SND_OMAP_SOC_RX51 tristate "SoC Audio support for Nokia RX-51" - depends on SND_OMAP_SOC && MACH_NOKIA_RX51 + depends on SND_OMAP_SOC && (MACH_NOKIA_RX51 || COMPILE_TEST) select SND_OMAP_SOC_MCBSP select SND_SOC_TLV320AIC3X select SND_SOC_TPA6130A2
@@ -87,7 +87,7 @@ config SND_OMAP_SOC_OMAP_TWL4030 config SND_OMAP_SOC_OMAP_ABE_TWL6040 tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec" - depends on TWL6040_CORE && SND_OMAP_SOC && ARCH_OMAP4 + depends on TWL6040_CORE && SND_OMAP_SOC && (ARCH_OMAP4 || COMPILE_TEST) select SND_OMAP_SOC_DMIC select SND_OMAP_SOC_MCPDM select SND_SOC_TWL6040
Signature · 1 line
1.8.3.2
Hi,
sound/soc/omap/Kconfig config SND_OMAP_SOC_N810 · line 29
Quoted 6 lines · Mark Brown
sound/soc/omap/Kconfig +1
-1@@ -26,7 +26,7 @@ config SND_OMAP_SOC_N810 config SND_OMAP_SOC_RX51 tristate "SoC Audio support for Nokia RX-51" - depends on SND_OMAP_SOC && MACH_NOKIA_RX51 + depends on SND_OMAP_SOC && (MACH_NOKIA_RX51 || COMPILE_TEST)
RX51 is OMAP3, and that's DT at all. This is likely just a case of updating commit log.
Signature · 1 line
balbi
Mark Brown
maintainerQuoted 10 lines · Felipe Balbi
sound/soc/omap/Kconfig config SND_OMAP_SOC_N810 · line 29
Quoted 6 lines · Mark Brown
sound/soc/omap/Kconfig +1
-1@@ -26,7 +26,7 @@ config SND_OMAP_SOC_N810 config SND_OMAP_SOC_RX51 tristate "SoC Audio support for Nokia RX-51" - depends on SND_OMAP_SOC && MACH_NOKIA_RX51 + depends on SND_OMAP_SOC && (MACH_NOKIA_RX51 || COMPILE_TEST)RX51 is OMAP3, and that's DT at all. This is likely just a case of updating commit log.
Sentence parse grammar not.
However... if you look at the driver it actually does have DT support in there, it checks for the machine type or for compatibility with n900. Probably needs an ARM dependency which I'll add due to the machine type check.
Quoted 10 lines · Mark Brown
Quoted 9 lines · Felipe Balbi
sound/soc/omap/Kconfig config SND_OMAP_SOC_N810 · line 29
Quoted 6 lines · Mark Brown
sound/soc/omap/Kconfig +1
-1@@ -26,7 +26,7 @@ config SND_OMAP_SOC_N810 config SND_OMAP_SOC_RX51 tristate "SoC Audio support for Nokia RX-51" - depends on SND_OMAP_SOC && MACH_NOKIA_RX51 + depends on SND_OMAP_SOC && (MACH_NOKIA_RX51 || COMPILE_TEST)RX51 is OMAP3, and that's DT at all. This is likely just a case of
^ not
Quoted 8 lines
Quoted 1 line
updating commit log.
Sentence parse grammar not.
However... if you look at the driver it actually does have DT support in there, it checks for the machine type or for compatibility with n900. Probably needs an ARM dependency which I'll add due to the machine type check.
alright.
Signature · 1 line
balbi
Hi Mark,
Quoted 4 lines · Mark Brown
From: Mark Brown <[email protected]>
The DT platforms don't have any source dependency on any OMAP stuff so allow them to be built when
COMPILE_TESTis enabled.
The OMAP3 generic machine driver could be also included in this patch:SND_OMAP_SOC_OMAP_TWL4030
Quoted 2 lines
Signed-off-by Mark Brown <[email protected]>---
Otherwise:
Quoted 34 lines
sound/soc/omap/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)sound/soc/omap/Kconfig +3
-3@@ -1,6 +1,6 @@ config SND_OMAP_SOC tristate "SoC Audio for the Texas Instruments OMAP chips" - depends on ARCH_OMAP && DMA_OMAP + depends on (ARCH_OMAP && DMA_OMAP) || COMPILE_TEST select SND_SOC_DMAENGINE_PCM config SND_OMAP_SOC_DMIC@@ -26,7 +26,7 @@ config SND_OMAP_SOC_N810 config SND_OMAP_SOC_RX51 tristate "SoC Audio support for Nokia RX-51" - depends on SND_OMAP_SOC && MACH_NOKIA_RX51 + depends on SND_OMAP_SOC && (MACH_NOKIA_RX51 || COMPILE_TEST) select SND_OMAP_SOC_MCBSP select SND_SOC_TLV320AIC3X select SND_SOC_TPA6130A2@@ -87,7 +87,7 @@ config SND_OMAP_SOC_OMAP_TWL4030 config SND_OMAP_SOC_OMAP_ABE_TWL6040 tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec" - depends on TWL6040_CORE && SND_OMAP_SOC && ARCH_OMAP4 + depends on TWL6040_CORE && SND_OMAP_SOC && (ARCH_OMAP4 || COMPILE_TEST) select SND_OMAP_SOC_DMIC select SND_OMAP_SOC_MCPDM select SND_SOC_TWL6040
Signature · 1 line
Péter
Mark Brown
maintainerQuoted 8 lines · Peter Ujfalusi
Quoted 4 lines · Mark Brown
From: Mark Brown <[email protected]>
The DT platforms don't have any source dependency on any OMAP stuff so allow them to be built when
COMPILE_TESTis enabled.The OMAP3 generic machine driver could be also included in this patch:
SND_OMAP_SOC_OMAP_TWL4030
There's no need for that - it has no dependencies other than the TWL4030 core driver and SND_OMAP_SOC so as soon as SND_OMAP_SOC can be enabled it is too.