Skip to contentSkip to conversation

ASoC: Fix TW4030 Kconfig dependency

PATCH Applied [email protected] 3 participants 6 messages Nov 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Fix TW4030 Kconfig dependency

From: Arun KS <[email protected]>

Fixes Kconfig dependency of TWL4030 audio codec driver with TWL4030 core driver on both overo and omap2evm boards

---
 sound/soc/omap/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/omap/Kconfig +2 -2
index 6c56277..0900437 100644
@@ -24,7 +24,7 @@ config SND_OMAP_SOC_OSK5912
 
 config SND_OMAP_SOC_OVERO
 	tristate "SoC Audio support for Gumstix Overo"
-	depends on SND_OMAP_SOC && MACH_OVERO
+	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OVERO
 	select SND_OMAP_SOC_MCBSP
 	select SND_SOC_TWL4030
 	help
@@ -32,7 +32,7 @@ config SND_OMAP_SOC_OVERO
 
 config SND_OMAP_SOC_OMAP2EVM
 	tristate "SoC Audio support for OMAP2EVM board"
-	depends on SND_OMAP_SOC && MACH_OMAP2EVM
+	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OMAP2EVM
 	select SND_OMAP_SOC_MCBSP
 	select SND_SOC_TWL4030
 	help
Signature · 1 line
1.5.6.3
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Monday 24 November 2008, [email protected] wrote:

From: Arun KS <[email protected]>

Fixes Kconfig dependency of TWL4030 audio codec driver with TWL4030 core driver on both overo and omap2evm boards

Good idea. :)

Quoted 35 lines
---
 sound/soc/omap/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/omap/Kconfig +2 -2
index 6c56277..0900437 100644
@@ -24,7 +24,7 @@ config SND_OMAP_SOC_OSK5912
 
 config SND_OMAP_SOC_OVERO
 	tristate "SoC Audio support for Gumstix Overo"
-	depends on SND_OMAP_SOC && MACH_OVERO
+	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OVERO
 	select SND_OMAP_SOC_MCBSP
 	select SND_SOC_TWL4030
 	help
@@ -32,7 +32,7 @@ config SND_OMAP_SOC_OVERO
 
 config SND_OMAP_SOC_OMAP2EVM
 	tristate "SoC Audio support for OMAP2EVM board"
-	depends on SND_OMAP_SOC && MACH_OMAP2EVM
+	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OMAP2EVM
 	select SND_OMAP_SOC_MCBSP
 	select SND_SOC_TWL4030
 	help
Signature · 6 lines
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Applied
#2 lore raw
Quoted 11 lines · David Brownell
Quoted 5 lines · On Monday 24 November 2008, [email protected] wrote:

Fixes Kconfig dependency of TWL4030 audio codec driver with TWL4030 core driver on both overo and omap2evm boards

Good idea. :)

Applied.

Might it be an idea to have the relevant machine drivers select the TWL4030 support? This would prevent them disabling it but the chip is such a basic part of these systems that that doesn't seem unreasonable.

#3 lore raw
Quoted 3 lines · Mark Brown

Might it be an idea to have the relevant machine drivers select the TWL4030 support?  This would prevent them disabling it but the chip is such a basic part of these systems that that doesn't seem unreasonable.

I'm not sure what you mean by "machine driver" ... there seem to be two: arch/arm/mach-omap2/board-*.c for everything except ALSA, and then sound/soc/omap/*.c for the ASoC bits.

As a rule, it's worth avoiding "select" in Kconfig; it doesn't work well, since it won't even report missing dependencies much less fix the trivial ones.

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 3 lines · David Brownell

I'm not sure what you mean by "machine driver" ... there seem to be two: arch/arm/mach-omap2/board-*.c for everything except ALSA, and then sound/soc/omap/*.c for the ASoC bits.

I meant the arch/arm one.

Quoted 3 lines

As a rule, it's worth avoiding "select" in Kconfig; it doesn't work well, since it won't even report missing dependencies much less fix the trivial ones.

Right, I'm just thinking that for something like this it might not be worth turning off the TWL4030 core support given that these sorts of southbridgeish chips tend to be pretty key to the system. It was just an idle thought, anyway.

BTW, it'd also be really handy if you could remove the OMAP dependencies from TWL4030_CORE - I know it currently needs them to actually be useful at runtime but it'd mean that it's possible to build things like the codec driver on other configs which helps when working on subsystems.

#5 lore raw
Quoted 4 lines · Mark Brown

BTW, it'd also be really handy if you could remove the OMAP dependencies from TWL4030_CORE - I know it currently needs them to actually be useful at runtime but it'd mean that it's possible to build things like the codec driver on other configs which helps when working on subsystems.

Patches for that are ready, but need a bit more testing in the OMAP tree before they go to mainline. I may prep the mainline patches anyway ... the patches are roughly

- updates to twl4030-core device creation, which are now in the OMAP tree, passing more IRQs via platform_device resources;

- updates to various TWL drivers that won't go to mainline for a while, so they get the IRQs from those new resources;

- removing the global IRQ symbols from the headers, and thus the OMAP dependencies.

The need for testing is from that second set of patches. There's also regulator framework stuff.

- Dave