Skip to contentSkip to conversation

ASoC: Allow Freescale MPC8610 audio drivers to be compiled as modules

PATCH In review Timur Tabi 3 participants 4 messages Jan 19, 2009 – Jan 20, 2009

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 ASoC: Allow Freescale MPC8610 audio drivers to be compiled as modules

Change the Kconfig and Makefile options for Freescale MPC8610 audio drivers so that they can be compiled as modules, and simplify the Kconfig choices so that only the platform is selected.

Also fix the naming of the driver files to conform to ALSA standards.

---
 sound/soc/fsl/Kconfig  |   16 ++++++++--------
 sound/soc/fsl/Makefile |    7 +++++--
 2 files changed, 13 insertions(+), 10 deletions(-)
sound/soc/fsl/Kconfig +8 -8
index 95c12b2..bd6974e 100644
@@ -1,17 +1,17 @@
 config SND_SOC_OF_SIMPLE
 	tristate
 
+# ASoC platform support for the Freescale MPC8610 SOC.  This compiles drivers
+# for the SSI and the Elo DMA controller.  You will still need to select
+# a platform driver and a codec driver.
 config SND_SOC_MPC8610
-	bool "ALSA SoC support for the MPC8610 SOC"
-	depends on MPC8610_HPCD
-	default y if MPC8610
-	help
-	  Say Y if you want to add support for codecs attached to the SSI
-          device on an MPC8610.
+	tristate
+	depends on MPC8610
 
 config SND_SOC_MPC8610_HPCD
-	bool "ALSA SoC support for the Freescale MPC8610 HPCD board"
-	depends on SND_SOC_MPC8610
+	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
+	depends on SND_SOC && MPC8610_HPCD
+	select SND_SOC_MPC8610
 	select SND_SOC_CS4270
 	select SND_SOC_CS4270_VD33_ERRATA
 	default y if MPC8610_HPCD
sound/soc/fsl/Makefile +5 -2
index 035da4a..f85134c 100644
@@ -2,10 +2,13 @@
 obj-$(CONFIG_SND_SOC_OF_SIMPLE) += soc-of-simple.o
 
 # MPC8610 HPCD Machine Support
-obj-$(CONFIG_SND_SOC_MPC8610_HPCD) += mpc8610_hpcd.o
+snd-soc-mpc8610-hpcd-objs := mpc8610_hpcd.o
+obj-$(CONFIG_SND_SOC_MPC8610_HPCD) += snd-soc-mpc8610-hpcd.o
 
 # MPC8610 Platform Support
-obj-$(CONFIG_SND_SOC_MPC8610) += fsl_ssi.o fsl_dma.o
+snd-soc-fsl-ssi-objs := fsl_ssi.o
+snd-soc-fsl-dma-objs := fsl_dma.o
+obj-$(CONFIG_SND_SOC_MPC8610) += snd-soc-fsl-ssi.o snd-soc-fsl-dma.o
 
 obj-$(CONFIG_SND_SOC_MPC5200_I2S) += mpc5200_psc_i2s.o
 
Signature · 1 line
1.5.5
author
#1 lore raw
Quoted 5 lines · Timur Tabi

Change the Kconfig and Makefile options for Freescale MPC8610 audio drivers so that they can be compiled as modules, and simplify the Kconfig choices so that only the platform is selected.

Also fix the naming of the driver files to conform to ALSA standards.

I've talked with Mark, and this patch should be for 2.6.30. The file names defined in the Makefile are still wrong, but it's not a big enough deal to put it into 2.6.29.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#2 lore raw
In reply to Timur Tabi

At Mon, 19 Jan 2009 11:57:46 -0600,

Quoted 29 lines · Timur Tabi

Change the Kconfig and Makefile options for Freescale MPC8610 audio drivers so that they can be compiled as modules, and simplify the Kconfig choices so that only the platform is selected.

Also fix the naming of the driver files to conform to ALSA standards.

---
 sound/soc/fsl/Kconfig  |   16 ++++++++--------
 sound/soc/fsl/Makefile |    7 +++++--
 2 files changed, 13 insertions(+), 10 deletions(-)
sound/soc/fsl/Kconfig +3 -4
index 95c12b2..bd6974e 100644
@@ -1,17 +1,17 @@
 config SND_SOC_OF_SIMPLE
 	tristate
 
+# ASoC platform support for the Freescale MPC8610 SOC.  This compiles drivers
+# for the SSI and the Elo DMA controller.  You will still need to select
+# a platform driver and a codec driver.
 config SND_SOC_MPC8610
-	bool "ALSA SoC support for the MPC8610 SOC"
-	depends on MPC8610_HPCD
-	default y if MPC8610
-	help

sound/soc/fsl/Kconfig line 13

Quoted 10 lines
sound/soc/fsl/Kconfig +4 -4
-	  Say Y if you want to add support for codecs attached to the SSI
-          device on an MPC8610.
+	tristate
+	depends on MPC8610
 
 config SND_SOC_MPC8610_HPCD
-	bool "ALSA SoC support for the Freescale MPC8610 HPCD board"
-	depends on SND_SOC_MPC8610
+	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
+	depends on SND_SOC && MPC8610_HPCD

The dependency on SND_SOC isn't needed here because this item is already inside "if SND_SOC".

Takashi

#3 lore raw
Quoted 8 lines · Takashi Iwai

sound/soc/fsl/Kconfig line 13

Quoted 5 lines

config SND_SOC_MPC8610_HPCD

sound/soc/fsl/Kconfig +2 -2
-	bool "ALSA SoC support for the Freescale MPC8610 HPCD board"
-	depends on SND_SOC_MPC8610
+	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
+	depends on SND_SOC && MPC8610_HPCD

The dependency on SND_SOC isn't needed here because this item is already inside "if SND_SOC".

Yup. Applied with that mod, thanks!