Skip to contentSkip to conversation

Fix Kconfig and Makefile for Freescale MPC8610 sound drivers

PATCH Applied Timur Tabi 2 participants 2 messages Jun 2, 2008 – Jun 3, 2008

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH v2 1/1 Fix Kconfig and Makefile for Freescale MPC8610 sound drivers

Fix the Kconfig for the Freescale MPC8610 sound drivers so that only the board is selectable, but the SOC is still a Kconfig option.

Fix the Makefile so that all of the modules are named snd-soc-xxx.ko.

---

My patch, "Add CS4270 i2c data to fsl_soc.c" must be applied for these drivers to work.

 sound/soc/fsl/Kconfig  |   13 ++++++-------
 sound/soc/fsl/Makefile |    7 +++++--
 2 files changed, 11 insertions(+), 9 deletions(-)
sound/soc/fsl/Kconfig +6 -7
index 257101f..056dc2f 100644
@@ -1,20 +1,19 @@
-menu "ALSA SoC audio for Freescale SOCs"
 
 config SND_SOC_MPC8610
-	bool "ALSA SoC support for the MPC8610 SOC"
-	depends on SND_SOC && MPC8610_HPCD
-	default y if MPC8610
+	tristate
+	# ALSA SoC support for the MPC8610 SOC
+	depends on MPC8610
 	help
 	  Say Y if you want to add support for codecs attached to the SSI
           device on an 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
 	help
 	  Say Y if you want to enable audio on the Freescale MPC8610 HPCD.
 
-endmenu
sound/soc/fsl/Makefile +5 -2
index 62f680a..3a2b64e 100644
@@ -1,6 +1,9 @@
 # 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
 
Signature · 1 line
1.5.5
Applied
#1 lore raw
Quoted 4 lines · Timur Tabi

Fix the Kconfig for the Freescale MPC8610 sound drivers so that only the board is selectable, but the SOC is still a Kconfig option.

Fix the Makefile so that all of the modules are named snd-soc-xxx.ko.

Applied, thanks.