aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2012-11-23 04:12:13 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-27 14:36:36 -0500
commit20dd9e5ed6d65269ebd038fa900b46171a02d956 (patch)
treec3df252868bdcc9aaf6e6fd0c75751dbf1f9154b /sound/soc/fsl
parent9489e9dcae718d5fde988e4a684a0f55b5f94d17 (diff)
ASoC: fsl: fix miscompilation of snd-soc-imx-pcm
Due to a broken make rule, sound/soc/fsl/imx-pcm-dma.c or sound/soc/fsl/imx-pcm-fiq.c (whatever is selected via Kconfig) will not be compiled into imx-pcm.o when building as module, i.e.: CONFIG_SND_SOC_IMX_PCM=m CONFIG_SND_SOC_IMX_PCM_DMA=m resulting in a non-functional sound driver. This gives the error messages: | imx-sgtl5000 sound.1: platform imx-pcm-audio not registered | imx-sgtl5000 sound.1: snd_soc_register_card failed (-517) | platform sound.1: Driver imx-sgtl5000 requests probe deferral when loading the driver instead of what's to be expected: | imx-sgtl5000 sound.1: sgtl5000 <-> 63fcc000.ssi mapping ok Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/fsl/Makefile b/sound/soc/fsl/Makefile
index 5f3cf3f52ea0..c3deee897b5a 100644
--- a/sound/soc/fsl/Makefile
+++ b/sound/soc/fsl/Makefile
@@ -26,14 +26,18 @@ obj-$(CONFIG_SND_MPC52xx_SOC_EFIKA) += efika-audio-fabric.o
26# i.MX Platform Support 26# i.MX Platform Support
27snd-soc-imx-ssi-objs := imx-ssi.o 27snd-soc-imx-ssi-objs := imx-ssi.o
28snd-soc-imx-audmux-objs := imx-audmux.o 28snd-soc-imx-audmux-objs := imx-audmux.o
29snd-soc-imx-pcm-objs := imx-pcm.o
30ifneq ($(CONFIG_SND_SOC_IMX_PCM_FIQ),)
31 snd-soc-imx-pcm-objs += imx-pcm-fiq.o
32endif
33ifneq ($(CONFIG_SND_SOC_IMX_PCM_DMA),)
34 snd-soc-imx-pcm-objs += imx-pcm-dma.o
35endif
29 36
30obj-$(CONFIG_SND_SOC_IMX_SSI) += snd-soc-imx-ssi.o 37obj-$(CONFIG_SND_SOC_IMX_SSI) += snd-soc-imx-ssi.o
31obj-$(CONFIG_SND_SOC_IMX_AUDMUX) += snd-soc-imx-audmux.o 38obj-$(CONFIG_SND_SOC_IMX_AUDMUX) += snd-soc-imx-audmux.o
32 39
33obj-$(CONFIG_SND_SOC_IMX_PCM) += snd-soc-imx-pcm.o 40obj-$(CONFIG_SND_SOC_IMX_PCM) += snd-soc-imx-pcm.o
34snd-soc-imx-pcm-y := imx-pcm.o
35snd-soc-imx-pcm-$(CONFIG_SND_SOC_IMX_PCM_FIQ) += imx-pcm-fiq.o
36snd-soc-imx-pcm-$(CONFIG_SND_SOC_IMX_PCM_DMA) += imx-pcm-dma.o
37 41
38# i.MX Machine Support 42# i.MX Machine Support
39snd-soc-eukrea-tlv320-objs := eukrea-tlv320.o 43snd-soc-eukrea-tlv320-objs := eukrea-tlv320.o