Skip to contentSkip to conversation

ASoC: sunxi: depend on ARCH_SUNXI

PATCH In review Peter Robinson 4 participants 6 messages Aug 22, 2016 – Aug 24, 2016

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

PATCH 1/1 ASoC: sunxi: depend on ARCH_SUNXI

Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable these if the appropriate SoC they're embedded in isn't enabled.

---
 sound/soc/sunxi/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/sunxi/Kconfig +3 -1
index 2a954bd..a2b62dc5 100644
@@ -2,6 +2,7 @@ menu "Allwinner SoC Audio support"
 
 config SND_SUN4I_CODEC
 	tristate "Allwinner A10 Codec Support"
+	depends on ARCH_SUNXI || COMPILE_TEST
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 	select REGMAP_MMIO
 	help
@@ -10,6 +11,7 @@ config SND_SUN4I_CODEC
 
 config SND_SUN4I_I2S
 	tristate "Allwinner A10 I2S Support"
+	depends on ARCH_SUNXI || COMPILE_TEST
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 	select REGMAP_MMIO
 	help
@@ -19,7 +21,7 @@ config SND_SUN4I_I2S
 
 config SND_SUN4I_SPDIF
 	tristate "Allwinner A10 SPDIF Support"
-	depends on OF
+	depends on OF && (ARCH_SUNXI || COMPILE_TEST)
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 	select REGMAP_MMIO
 	help
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 4 lines · Peter Robinson

Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable these if the appropriate SoC they're embedded in isn't enabled.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160822/e8aa6d30/attachment.sig>
Acked-by on v1 1/1
#2 lore raw
In reply to Peter Robinson
Quoted 13 lines · CEST Peter Robinson

Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable these if the appropriate SoC they're embedded in isn't enabled.

---
 sound/soc/sunxi/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/sunxi/Kconfig +0 -0
index 2a954bd..a2b62dc5 100644

sound/soc/sunxi/Kconfig menu "Allwinner SoC Audio support" · line 8

Quoted 7 lines
sound/soc/sunxi/Kconfig +1 -0
@@ -2,6 +2,7 @@ menu "Allwinner SoC Audio support"
 
 config SND_SUN4I_CODEC
        tristate "Allwinner A10 Codec Support"
+       depends on ARCH_SUNXI || COMPILE_TEST
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO
 

Makes sense, though I think it's nicer to add the dependency to the entire menu, so we hide that as well, and don't have to add the line to future entries:

sound/soc/sunxi/Kconfig +1 -0
index 2a954bd01fd8..dd2368297fd3 100644
@@ -1,4 +1,5 @@
 menu "Allwinner SoC Audio support"
+	depends on ARCH_SUNXI || COMPILE_TEST
 
 config SND_SUN4I_CODEC
 	tristate "Allwinner A10 Codec Support"

Either way

#4 lore raw
In reply to Arnd Bergmann
Quoted 15 lines · Arnd Bergmann
Quoted 14 lines · CEST Peter Robinson

Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable these if the appropriate SoC they're embedded in isn't enabled.

---
 sound/soc/sunxi/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/sunxi/Kconfig +0 -0
index 2a954bd..a2b62dc5 100644
@@ -2,6 +2,7 @@ menu "Allwinner SoC Audio support"
 
Quoted 10 lines

sound/soc/sunxi/Kconfig menu "Allwinner SoC Audio support" · line 8

Quoted 6 lines
sound/soc/sunxi/Kconfig +1 -0
 config SND_SUN4I_CODEC
        tristate "Allwinner A10 Codec Support"
+       depends on ARCH_SUNXI || COMPILE_TEST
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO
 

Makes sense, though I think it's nicer to add the dependency to the entire menu, so we hide that as well, and don't have to add the line to future entries:

Makes sense, will do a v2 shortly.

P

Quoted 13 lines
sound/soc/sunxi/Kconfig +1 -0
index 2a954bd01fd8..dd2368297fd3 100644
@@ -1,4 +1,5 @@
 menu "Allwinner SoC Audio support"
+       depends on ARCH_SUNXI || COMPILE_TEST
 
 config SND_SUN4I_CODEC
        tristate "Allwinner A10 Codec Support"

Either way

maintainer
#5 lore raw

Applied "ASoC: sunxi: depend on ARCH_SUNXI" to the asoc tree

In reply to Arnd Bergmann

The patch

ASoC: sunxi: depend on ARCH_SUNXI

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 702650bda073cb9df90e3a091ee515f340133b05 Mon Sep 17 00:00:00 2001

From: Peter Robinson <[email protected]>
Date: Tue, 23 Aug 2016 18:17:46 +0100
Subject: [PATCH] ASoC: sunxi: depend on ARCH_SUNXI

Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable these if the appropriate SoC they're embedded in isn't enabled.

---
 sound/soc/sunxi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/sunxi/Kconfig +1 -0
index 2a954bd01fd8..dd2368297fd3 100644
@@ -1,4 +1,5 @@
 menu "Allwinner SoC Audio support"
+	depends on ARCH_SUNXI || COMPILE_TEST
 
 config SND_SUN4I_CODEC
 	tristate "Allwinner A10 Codec Support"
Signature · 1 line
2.8.1