Skip to contentSkip to conversation

ASoC: omap: Enable COMPILE_TEST build for DT platforms

PATCH In review Mark Brown 3 participants 6 messages Jul 15, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 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
index 9f5d55e..68dfc0a 100644
@@ -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
#1 lore raw

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
author maintainer
#2 lore raw
Quoted 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.

#3 lore raw
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
Acked-by on v1 1/1
#4 lore raw
In reply to Mark Brown

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_TEST is enabled.

The OMAP3 generic machine driver could be also included in this patch:
SND_OMAP_SOC_OMAP_TWL4030

Quoted 2 lines

---

Otherwise:

Quoted 34 lines
 sound/soc/omap/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/omap/Kconfig +3 -3
index 9f5d55e..68dfc0a 100644
@@ -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
author maintainer
#5 lore raw
Quoted 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_TEST is 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.