linux/sound/soc/fsl
Lothar Waßmann f2818d07af ASoC: fsl: fix miscompilation of snd-soc-imx-pcm
Hi Mark,

thanks your insisting on a better description for the patch, I found a
more appropriate solution for the problem:

Compiling the SoC Audio driver for Freescale i.MX as a module
(CONFIG_SND_SOC_IMX_PCM=m) results in a non-functional sound driver
indicated by the error message:
| 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
instead of the message:
| imx-sgtl5000 sound.1:  sgtl5000 <-> 63fcc000.ssi mapping ok
that is to be expected upon loading the snd-soc-imx-pcm.ko module.

The build log reveals, that the file imx-pcm-dma.o (or imx-pcm-fiq.o
depending on the kernel configuration), which should be linked
together with imx-pcm.o into snd-imx-pcm.ko, is not being compiled in
this case.

The make rules for these files shows that the target object imx-pcm.o
is assigned to the variable snd-soc-imx-pcm-y while
imx-pcm-{dma,fiq}.o are added to to
snd-soc-imx-pcm-$(CONFIG_SND_SOC_IMX_PCM_DMA) and
snd-soc-imx-pcm-$(CONFIG_SND_SOC_IMX_PCM_FIQ) which resolve to
snd-soc-imx-pcm-m in this case.

According to Documentation/kbuild/modules.txt:
|When the module is built from multiple sources, an additional line is
|needed listing the files:
|
|        <module_name>-y := <src1>.o <src2>.o ...
Thus the type of the config variables CONFIG_SND_SOC_IMX_PCM_DMA and
CONFIG_SND_SOC_IMX_PCM_FIQ should be 'bool' instead of 'tristate' to
resolve to 'y' when selected.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-11-27 19:37:35 +00:00
..
efika-audio-fabric.c ASoC: fsl: Add .owner to struct snd_soc_card 2011-12-22 17:34:32 +00:00
eukrea-tlv320.c ASoC: eukrea-tlv320: Convert it to platform driver 2012-09-28 14:12:52 +01:00
fsl_dma.c ASoC: fsl: remove unnecessary call to dma_unmap_single 2012-09-18 22:32:44 -04:00
fsl_dma.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
fsl_ssi.c Revert "ASoC: fsl_ssi: convert to use devm_clk_get" 2012-06-05 11:08:45 +01:00
fsl_ssi.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
fsl_utils.c ASoC: fsl: remove helper fsl_asoc_get_codec_dev_name 2012-04-01 11:28:27 +01:00
fsl_utils.h ASoC: fsl: remove helper fsl_asoc_get_codec_dev_name 2012-04-01 11:28:27 +01:00
imx-audmux.c ASoC: imx-audmux: remove null check of audmux_base in audmux_read_file 2012-09-18 22:53:15 -04:00
imx-audmux.h ASoC imx-audmux: add MX31_AUDMUX_PORT7_SSI_PINS_7 define 2012-07-18 22:09:40 +01:00
imx-mc13783.c ASoC: imx-mc13783: Add audmux settings for mx27pdk 2012-07-05 13:48:25 +01:00
imx-pcm-dma.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
imx-pcm-fiq.c ARM: imx: move platform_data definitions 2012-09-14 11:17:21 +02:00
imx-pcm.c ASoC: imx: merge sound/soc/imx into sound/soc/fsl 2012-04-01 11:28:26 +01:00
imx-pcm.h ASoC: fsl: assign dma peripheral type according to bus topology 2012-04-01 11:28:29 +01:00
imx-sgtl5000.c ASoC: imx-sgtl5000: fix error return code 2012-08-20 20:44:19 +01:00
imx-ssi.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
imx-ssi.h ARM: imx: move platform_data definitions 2012-09-14 11:17:21 +02:00
Kconfig ASoC: fsl: fix miscompilation of snd-soc-imx-pcm 2012-11-27 19:37:35 +00:00
Makefile ASoC: fsl: fix miscompilation of snd-soc-imx-pcm 2012-11-27 19:36:36 +00:00
mpc5200_dma.c ASoC: fsl: mpc5200 combine psc_dma platform data 2012-09-18 23:03:42 -04:00
mpc5200_dma.h ASoC: fsl: mpc5200 combine psc_dma platform data 2012-09-18 23:03:42 -04:00
mpc5200_psc_ac97.c ASoC: fsl: mpc5200 add missing information to snd_soc_dai_driver 2012-09-18 23:04:08 -04:00
mpc5200_psc_ac97.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
mpc5200_psc_i2s.c ASoC: fsl: mpc5200 add missing information to snd_soc_dai_driver 2012-09-18 23:04:08 -04:00
mpc8610_hpcd.c ASoC: fsl: use snd_soc_register_card to register the card 2012-09-18 22:32:44 -04:00
mx27vis-aic32x4.c ASoC: mx27vis: retrieve gpio numbers from platform_data 2012-09-17 07:35:08 -04:00
p1022_ds.c ASoC: fsl: use snd_soc_register_card to register the card 2012-09-18 22:32:44 -04:00
pcm030-audio-fabric.c ASoC: fsl: register the wm9712-codec 2012-09-22 11:02:17 -04:00
phycore-ac97.c ASoC: imx: merge sound/soc/imx into sound/soc/fsl 2012-04-01 11:28:26 +01:00
wm1133-ev1.c ASoC: imx: merge sound/soc/imx into sound/soc/fsl 2012-04-01 11:28:26 +01:00