Skip to contentSkip to conversation

ASoC: fsl: Separation of the main audio options and boards

PATCH Superseded Alexander Shiyan 2 participants 8 messages Feb 5, 2014 – Feb 28, 2014

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

PATCH 1/2 ASoC: fsl: Separation of the main audio options and boards

This patch provide separation of the main audio options and boards.

---
 sound/soc/fsl/Kconfig | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)
sound/soc/fsl/Kconfig +22 -14
index 07f8f14..ecc1092 100644
@@ -1,3 +1,5 @@
+menu "SoC Audio for Freescale CPUs"
+
 config SND_SOC_FSL_SAI
 	tristate
 	select SND_SOC_GENERIC_DMAENGINE_PCM
@@ -14,13 +16,27 @@ config SND_SOC_FSL_ESAI
 config SND_SOC_FSL_UTILS
 	tristate
 
-menuconfig SND_POWERPC_SOC
+config SND_SOC_IMX_PCM_DMA
+	tristate
+	select SND_SOC_GENERIC_DMAENGINE_PCM
+
+config SND_SOC_IMX_AUDMUX
+	tristate
+
+config SND_POWERPC_SOC
 	tristate "SoC Audio for Freescale PowerPC CPUs"
 	depends on FSL_SOC || PPC_MPC52xx
 	help
 	  Say Y or M if you want to add support for codecs attached to
 	  the PowerPC CPUs.
 
+config SND_IMX_SOC
+	tristate "SoC Audio for Freescale i.MX CPUs"
+	depends on ARCH_MXC || COMPILE_TEST
+	help
+	  Say Y or M if you want to add support for codecs attached to
+	  the i.MX CPUs.
+
 if SND_POWERPC_SOC
 
 config SND_MPC52xx_DMA
@@ -29,6 +45,8 @@ config SND_MPC52xx_DMA
 config SND_SOC_POWERPC_DMA
 	tristate
 
+comment "SoC Audio support for Freescale PPC boards:"
+
 config SND_SOC_MPC8610_HPCD
 	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
 	# I2C is necessary for the CS4270 driver
@@ -106,13 +124,6 @@ config SND_MPC52xx_SOC_EFIKA
 
 endif # SND_POWERPC_SOC
 
-menuconfig SND_IMX_SOC
-	tristate "SoC Audio for Freescale i.MX CPUs"
-	depends on ARCH_MXC || COMPILE_TEST
-	help
-	  Say Y or M if you want to add support for codecs attached to
-	  the i.MX CPUs.
-
 if SND_IMX_SOC
 
 config SND_SOC_IMX_SSI
@@ -122,12 +133,7 @@ config SND_SOC_IMX_PCM_FIQ
 	tristate
 	select FIQ
 
-config SND_SOC_IMX_PCM_DMA
-	tristate
-	select SND_SOC_GENERIC_DMAENGINE_PCM
-
-config SND_SOC_IMX_AUDMUX
-	tristate
+comment "SoC Audio support for Freescale i.MX boards:"
 
 config SND_MXC_SOC_WM1133_EV1
 	tristate "Audio on the i.MX31ADS with WM1133-EV1 fitted"
@@ -219,3 +225,5 @@ config SND_SOC_IMX_MC13783
 	select SND_SOC_IMX_PCM_DMA
 
 endif # SND_IMX_SOC
+
+endmenu
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/2 ASoC: fsl: Allow to select individual common options

This patch allow to select individual common sound options and as a result allow using sound cards/codecs based on DT description.

---
 sound/soc/fsl/Kconfig | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
sound/soc/fsl/Kconfig +20 -3
index ecc1092..ed74c19 100644
@@ -1,14 +1,26 @@
 menu "SoC Audio for Freescale CPUs"
 
+comment "Common SoC Audio options for Freescale CPUs:"
+
 config SND_SOC_FSL_SAI
 	tristate
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 
 config SND_SOC_FSL_SSI
-	tristate
+	tristate "Synchronous Serial Interface module support"
+	help
+	  Say Y if you want to add Synchronous Serial Interface (SSI)
+	  support for the Freescale CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_SOC_FSL_SPDIF
-	tristate
+	tristate "Sony/Philips Digital Interface module support"
+	help
+	  Say Y if you want to add Sony/Philips Digital Interface (SPDIF)
+	  support for the Freescale CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_SOC_FSL_ESAI
 	tristate
@@ -21,7 +33,12 @@ config SND_SOC_IMX_PCM_DMA
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 
 config SND_SOC_IMX_AUDMUX
-	tristate
+	tristate "Digital Audio Mux module support"
+	help
+	  Say Y if you want to add Digital Audio Mux (AUDMUX) support
+	  for the ARM i.MX CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_POWERPC_SOC
 	tristate "SoC Audio for Freescale PowerPC CPUs"
Signature · 1 line
1.8.3.2
#2 lore raw

Re: [PATCH 2/2] ASoC: fsl: Allow to select individual common options

Quoted 13 lines · Alexander Shiyan

This patch allow to select individual common sound options and as a result allow using sound cards/codecs based on DT description.

---
 sound/soc/fsl/Kconfig | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
sound/soc/fsl/Kconfig +0 -0
index ecc1092..ed74c19 100644

sound/soc/fsl/Kconfig line 7

Quoted 7 lines
sound/soc/fsl/Kconfig +2 -0
@@ -1,14 +1,26 @@
 menu "SoC Audio for Freescale CPUs"
 
+comment "Common SoC Audio options for Freescale CPUs:"
+
 config SND_SOC_FSL_SAI
 	tristate
 	select SND_SOC_GENERIC_DMAENGINE_PCM

Why do you skip SND_SOC_FSL_SAI and SND_SOC_FSL_ESAI for the change?

Quoted 22 lines
sound/soc/fsl/Kconfig +12 -2
 config SND_SOC_FSL_SSI
-	tristate
+	tristate "Synchronous Serial Interface module support"
+	help
+	  Say Y if you want to add Synchronous Serial Interface (SSI)
+	  support for the Freescale CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_SOC_FSL_SPDIF
-	tristate
+	tristate "Sony/Philips Digital Interface module support"
+	help
+	  Say Y if you want to add Sony/Philips Digital Interface (SPDIF)
+	  support for the Freescale CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_SOC_FSL_ESAI
 	tristate

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_DMA · line 33

Quoted 1 line
sound/soc/fsl/Kconfig +0 -0
@@ -21,7 +33,12 @@ config SND_SOC_IMX_PCM_DMA
 	select SND_SOC_GENERIC_DMAENGINE_PCM

Doesn't the simple card driver need this to work on IMX?

Shawn

Quoted 15 lines
sound/soc/fsl/Kconfig +6 -1
 config SND_SOC_IMX_AUDMUX
-	tristate
+	tristate "Digital Audio Mux module support"
+	help
+	  Say Y if you want to add Digital Audio Mux (AUDMUX) support
+	  for the ARM i.MX CPUs.
+	  This option is only useful for out-of-tree drivers since
+	  in-tree drivers select it automatically.
 
 config SND_POWERPC_SOC
 	tristate "SoC Audio for Freescale PowerPC CPUs"
Signature · 1 line
1.8.3.2
#3 lore raw

Re: [PATCH 2/2] ASoC: fsl: Allow to select individual common options

Hello.

Quoted 16 lines · Alexander Shiyan
Quoted 15 lines

This patch allow to select individual common sound options and as a result allow using sound cards/codecs based on DT description.

---
 sound/soc/fsl/Kconfig | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
sound/soc/fsl/Kconfig +0 -0
index ecc1092..ed74c19 100644
@@ -1,14 +1,26 @@
 menu "SoC Audio for Freescale CPUs"
 
Quoted 7 lines

sound/soc/fsl/Kconfig line 7

Quoted 5 lines
sound/soc/fsl/Kconfig +2 -0
+comment "Common SoC Audio options for Freescale CPUs:"
+
 config SND_SOC_FSL_SAI
 	tristate
 	select SND_SOC_GENERIC_DMAENGINE_PCM

Why do you skip SND_SOC_FSL_SAI and SND_SOC_FSL_ESAI for the change?

My comments here are the same as for the patch 1/2.

...

Quoted 6 lines

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_DMA · line 33

Quoted 4 lines
sound/soc/fsl/Kconfig +0 -0
 config SND_SOC_FSL_ESAI
 	tristate
@@ -21,7 +33,12 @@ config SND_SOC_IMX_PCM_DMA
 	select SND_SOC_GENERIC_DMAENGINE_PCM

Doesn't the simple card driver need this to work on IMX?

Simple card driver does not work for i.MX at now due to some other issues which should be resolved in separate patches for that driver. Just one example:
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-January/070697.html

Thanks.
---

#4 lore raw
In reply to Alexander Shiyan
Quoted 70 lines · Alexander Shiyan

This patch provide separation of the main audio options and boards.

---
 sound/soc/fsl/Kconfig | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)
sound/soc/fsl/Kconfig +19 -8
index 07f8f14..ecc1092 100644
@@ -1,3 +1,5 @@
+menu "SoC Audio for Freescale CPUs"
+
 config SND_SOC_FSL_SAI
 	tristate
 	select SND_SOC_GENERIC_DMAENGINE_PCM
@@ -14,13 +16,27 @@ config SND_SOC_FSL_ESAI
 config SND_SOC_FSL_UTILS
 	tristate
 
-menuconfig SND_POWERPC_SOC
+config SND_SOC_IMX_PCM_DMA
+	tristate
+	select SND_SOC_GENERIC_DMAENGINE_PCM
+
+config SND_SOC_IMX_AUDMUX
+	tristate
+
+config SND_POWERPC_SOC
 	tristate "SoC Audio for Freescale PowerPC CPUs"
 	depends on FSL_SOC || PPC_MPC52xx
 	help
 	  Say Y or M if you want to add support for codecs attached to
 	  the PowerPC CPUs.
 
+config SND_IMX_SOC
+	tristate "SoC Audio for Freescale i.MX CPUs"
+	depends on ARCH_MXC || COMPILE_TEST
+	help
+	  Say Y or M if you want to add support for codecs attached to
+	  the i.MX CPUs.
+
 if SND_POWERPC_SOC
 
 config SND_MPC52xx_DMA
@@ -29,6 +45,8 @@ config SND_MPC52xx_DMA
 config SND_SOC_POWERPC_DMA
 	tristate
 
+comment "SoC Audio support for Freescale PPC boards:"
+
 config SND_SOC_MPC8610_HPCD
 	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
 	# I2C is necessary for the CS4270 driver
@@ -106,13 +124,6 @@ config SND_MPC52xx_SOC_EFIKA
 
 endif # SND_POWERPC_SOC
 
-menuconfig SND_IMX_SOC
-	tristate "SoC Audio for Freescale i.MX CPUs"
-	depends on ARCH_MXC || COMPILE_TEST
-	help
-	  Say Y or M if you want to add support for codecs attached to
-	  the i.MX CPUs.
-
 if SND_IMX_SOC
 
 config SND_SOC_IMX_SSI

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_FIQ · line 134

Quoted 2 lines
sound/soc/fsl/Kconfig +0 -0
@@ -122,12 +133,7 @@ config SND_SOC_IMX_PCM_FIQ
 	tristate
 	select FIQ

Hmm, why do you choose to have SND_SOC_IMX_SSI and SND_SOC_IMX_PCM_FIQ still stay in board section?

Shawn

Quoted 20 lines
sound/soc/fsl/Kconfig +3 -6
-config SND_SOC_IMX_PCM_DMA
-	tristate
-	select SND_SOC_GENERIC_DMAENGINE_PCM
-
-config SND_SOC_IMX_AUDMUX
-	tristate
+comment "SoC Audio support for Freescale i.MX boards:"
 
 config SND_MXC_SOC_WM1133_EV1
 	tristate "Audio on the i.MX31ADS with WM1133-EV1 fitted"
@@ -219,3 +225,5 @@ config SND_SOC_IMX_MC13783
 	select SND_SOC_IMX_PCM_DMA
 
 endif # SND_IMX_SOC
+
+endmenu
Signature · 1 line
1.8.3.2
#5 lore raw

Hello.

Quoted 9 lines · Alexander Shiyan
Quoted 8 lines

This patch provide separation of the main audio options and boards.

---
 sound/soc/fsl/Kconfig | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)
sound/soc/fsl/Kconfig +0 -0

...

Quoted 9 lines

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_FIQ · line 134

Quoted 6 lines

if SND_IMX_SOC

config SND_SOC_IMX_SSI

sound/soc/fsl/Kconfig +0 -0
@@ -122,12 +133,7 @@ config SND_SOC_IMX_PCM_FIQ
 	tristate
 	select FIQ

Hmm, why do you choose to have SND_SOC_IMX_SSI and SND_SOC_IMX_PCM_FIQ still stay in board section?

SND_SOC_IMX_SSI is used for ATAGS boards only, and selected for each individual platform driver, so there are no need to select this option especially.

For SND_SOC_IMX_PCM_FIQ I just not imagine yet how to describe this option in Kconfig ;) In any case, it can be done later if the total change concept looks good.

Thanks.

---

#6 lore raw

Понедельник, 10 февраля 2014, 10:29 +04:00 от Alexander Shiyan <[email protected]>:

Quoted 22 lines

Hello.

Quoted 9 lines · Alexander Shiyan
Quoted 8 lines

This patch provide separation of the main audio options and boards.

---
 sound/soc/fsl/Kconfig | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)
sound/soc/fsl/Kconfig +0 -0

...

Quoted 9 lines

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_FIQ · line 134

Quoted 6 lines

if SND_IMX_SOC

config SND_SOC_IMX_SSI

sound/soc/fsl/Kconfig +0 -0
@@ -122,12 +133,7 @@ config SND_SOC_IMX_PCM_FIQ
 	tristate
 	select FIQ

Hmm, why do you choose to have SND_SOC_IMX_SSI and SND_SOC_IMX_PCM_FIQ still stay in board section?

Quoted 5 lines

SND_SOC_IMX_SSI is used for ATAGS boards only, and selected for each individual platform driver, so there are no need to select this option especially.

For SND_SOC_IMX_PCM_FIQ I just not imagine yet how to describe this option in Kconfig ;) In any case, it can be done later if the total change concept looks good.

Ping.

---
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#7 lore raw
Quoted 23 lines · Alexander Shiyan

Понедельник, 10 февраля 2014, 10:29 +04:00 от Alexander Shiyan <[email protected]>:

Quoted 22 lines

Hello.

Quoted 9 lines · Alexander Shiyan
Quoted 8 lines

This patch provide separation of the main audio options and boards.

---
 sound/soc/fsl/Kconfig | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)
sound/soc/fsl/Kconfig +0 -0

...

Quoted 9 lines

sound/soc/fsl/Kconfig config SND_SOC_IMX_PCM_FIQ · line 134

Quoted 6 lines

if SND_IMX_SOC

config SND_SOC_IMX_SSI

sound/soc/fsl/Kconfig +0 -0
@@ -122,12 +133,7 @@ config SND_SOC_IMX_PCM_FIQ
 	tristate
 	select FIQ

Hmm, why do you choose to have SND_SOC_IMX_SSI and SND_SOC_IMX_PCM_FIQ still stay in board section?

Quoted 7 lines
Quoted 5 lines

SND_SOC_IMX_SSI is used for ATAGS boards only, and selected for each individual platform driver, so there are no need to select this option especially.

For SND_SOC_IMX_PCM_FIQ I just not imagine yet how to describe this option in Kconfig ;) In any case, it can be done later if the total change concept looks good.

Ping.

I'm fine with it.

Shawn

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel