Skip to contentSkip to conversation

sound: Fix empty menuconfig SND_ARM

PATCH NAK Eugeniu Rosca 3 participants 6 messages Jul 30, 2016 – Aug 3, 2016 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: Fix empty menuconfig SND_ARM

commit 3c8f7710c1c4 ("ASoC: fix broken pxa SoC support") has removed the SND_ARM dependency from SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97, by moving these config entries outside of the "if SND_ARM ... endif" construct.

However, by placing these 2 symbols right between the SND_ARM menuconfig definition and the first SND_ARM menu entry, the side effect is that the SND_ARM menu becomes empty and all the config entries caught between "if SND_ARM ... endif" no more belong to menuconfig SND_ARM, but to its parent (menuconfig SND).

Fix this.

---
 sound/arm/Kconfig | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
sound/arm/Kconfig +7 -8
index e040621..65171f6 100644
@@ -9,14 +9,6 @@ menuconfig SND_ARM
 	  Drivers that are implemented on ASoC can be found in
 	  "ALSA for SoC audio support" section.
 
-config SND_PXA2XX_LIB
-	tristate
-	select SND_AC97_CODEC if SND_PXA2XX_LIB_AC97
-	select SND_DMAENGINE_PCM
-
-config SND_PXA2XX_LIB_AC97
-	bool
-
 if SND_ARM
 
 config SND_ARMAACI
@@ -42,3 +34,10 @@ config SND_PXA2XX_AC97
 
 endif	# SND_ARM
 
+config SND_PXA2XX_LIB
+	tristate
+	select SND_AC97_CODEC if SND_PXA2XX_LIB_AC97
+	select SND_DMAENGINE_PCM
+
+config SND_PXA2XX_LIB_AC97
+	bool
Signature · 1 line
2.9.2
#1 lore raw
Quoted 5 lines · Eugeniu Rosca

commit 3c8f7710c1c4 ("ASoC: fix broken pxa SoC support") has removed the SND_ARM dependency from SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97, by moving these config entries outside of the "if SND_ARM ... endif" construct.

Quoted 7 lines

However, by placing these 2 symbols right between the SND_ARM menuconfig definition and the first SND_ARM menu entry, the side effect is that the SND_ARM menu becomes empty and all the config entries caught between "if SND_ARM ... endif" no more belong to menuconfig SND_ARM, but to its parent (menuconfig SND).

Fix this.

NAK.

The reason is that SND_PXA2XX_LIB is used outside of SND_ARM, see sound/soc/pxa/Kconfig, SND_PXA2XX_SOC and co.

With you commit you're breaking every board relying on SND_PXA2XX_SOC but not SND_ARM.

Cheers.

--
Robert

#2 lore raw
Quoted 19 lines · Robert Jarzmik
Quoted 5 lines · Eugeniu Rosca

commit 3c8f7710c1c4 ("ASoC: fix broken pxa SoC support") has removed the SND_ARM dependency from SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97, by moving these config entries outside of the "if SND_ARM ... endif" construct.

Quoted 7 lines

However, by placing these 2 symbols right between the SND_ARM menuconfig definition and the first SND_ARM menu entry, the side effect is that the SND_ARM menu becomes empty and all the config entries caught between "if SND_ARM ... endif" no more belong to menuconfig SND_ARM, but to its parent (menuconfig SND).

Fix this.

NAK.

The reason is that SND_PXA2XX_LIB is used outside of SND_ARM, see sound/soc/pxa/Kconfig, SND_PXA2XX_SOC and co.

Quoted 7 lines

With you commit you're breaking every board relying on SND_PXA2XX_SOC but not SND_ARM.

Cheers.

--
Robert

Hi Robert and thanks for the quick reply!

In my understanding, the patch doesn't bring any changes in the relationship between different config options. It only corrects the way the config entries are exposed to the user via "make menuconfig" interface.

Here are two situations that I hope can explain it:

1. Proper (non-empty) menu:

menuconfig A
prompt "menu-A"

if A
config B
prompt "config-B"
endif

config C
prompt "config-C"

2. Empty menu:

menuconfig A
prompt "menu-A"

config C
prompt "config-C"

if A
config B
prompt "config-B"
endif

In both cases, the relationship between A, B, C is the same. However, the options are exposed differently by "make menuconfig". Assuming B is enabled:

(1):
menu-A
config-B
config-C

(2):
menu-A
config-C
config-B

In case of (1), B is a child of A (expected)
In case of (2), B is a sibling of A (not quite expected)

Let me know if there are still doubts on your side and/or if I can be of any further help.

Thanks,
Eugeniu.

#3 lore raw
Quoted 23 lines · Eugeniu Rosca
Quoted 22 lines · Robert Jarzmik
Quoted 5 lines · Eugeniu Rosca

commit 3c8f7710c1c4 ("ASoC: fix broken pxa SoC support") has removed the SND_ARM dependency from SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97, by moving these config entries outside of the "if SND_ARM ... endif" construct.

Quoted 7 lines

However, by placing these 2 symbols right between the SND_ARM menuconfig definition and the first SND_ARM menu entry, the side effect is that the SND_ARM menu becomes empty and all the config entries caught between "if SND_ARM ... endif" no more belong to menuconfig SND_ARM, but to its parent (menuconfig SND).

Fix this.

NAK.

The reason is that SND_PXA2XX_LIB is used outside of SND_ARM, see sound/soc/pxa/Kconfig, SND_PXA2XX_SOC and co.

With you commit you're breaking every board relying on SND_PXA2XX_SOC but not SND_ARM.

Quoted 6 lines
Quoted 4 lines

Cheers.

--
Robert

Hi Robert and thanks for the quick reply!

Hi Eugeniu,

Thanks for the explanation, it's very clear.

Moreover I reread your patch, and tested it, and you're actually putting the SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97 _after_ the endif, while I was reading you put them in the middle of "if ARM ... endif", hence my initial complaint.

Therefore, I remove my NAK, and :

Cheers.

--
Robert

#4 lore raw
Quoted 35 lines · Robert Jarzmik
Quoted 23 lines · Eugeniu Rosca
Quoted 22 lines · Robert Jarzmik
Quoted 5 lines · Eugeniu Rosca

commit 3c8f7710c1c4 ("ASoC: fix broken pxa SoC support") has removed the SND_ARM dependency from SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97, by moving these config entries outside of the "if SND_ARM ... endif" construct.

Quoted 7 lines

However, by placing these 2 symbols right between the SND_ARM menuconfig definition and the first SND_ARM menu entry, the side effect is that the SND_ARM menu becomes empty and all the config entries caught between "if SND_ARM ... endif" no more belong to menuconfig SND_ARM, but to its parent (menuconfig SND).

Fix this.

NAK.

The reason is that SND_PXA2XX_LIB is used outside of SND_ARM, see sound/soc/pxa/Kconfig, SND_PXA2XX_SOC and co.

With you commit you're breaking every board relying on SND_PXA2XX_SOC but not SND_ARM.

Quoted 6 lines
Quoted 4 lines

Cheers.

--
Robert

Hi Robert and thanks for the quick reply!

Hi Eugeniu,

Quoted 8 lines

Thanks for the explanation, it's very clear.

Moreover I reread your patch, and tested it, and you're actually putting the SND_PXA2XX_LIB and SND_PXA2XX_LIB_AC97 _after_ the endif, while I was reading you put them in the middle of "if ARM ... endif", hence my initial complaint.

Therefore, I remove my NAK, and :

OK, thanks, I applied this one now.

Although it looks like a silly workaround, the real problem is rather the syntax of menuconfig, which ambiguously defines the suboptions, so this seems to be a reasonable fix at the right moment.

Takashi