1. 17 4月, 2013 1 次提交
  2. 05 4月, 2013 1 次提交
  3. 04 4月, 2013 1 次提交
  4. 26 3月, 2013 1 次提交
  5. 13 3月, 2013 2 次提交
  6. 12 2月, 2013 1 次提交
  7. 28 1月, 2013 2 次提交
    • S
      ASoC: fsl: fix snd-soc-imx-pcm module build · 1927661b
      Shawn Guo 提交于
      When building modules with CONFIG_SND_IMX_SOC=m in imx_v6_v7_defconfig,
      we will see the following link error.
      
        LD [M]  sound/soc/fsl/snd-soc-fsl-ssi.o
        LD [M]  sound/soc/fsl/snd-soc-fsl-utils.o
        LD [M]  sound/soc/fsl/snd-soc-imx-ssi.o
        LD [M]  sound/soc/fsl/snd-soc-imx-audmux.o
        LD [M]  sound/soc/fsl/snd-soc-imx-pcm.o
      sound/soc/fsl/imx-pcm-dma.o: In function `init_module':
      imx-pcm-dma.c:(.init.text+0x0): multiple definition of `init_module'
      sound/soc/fsl/imx-pcm-fiq.o:imx-pcm-fiq.c:(.init.text+0x0): first defined here
      sound/soc/fsl/imx-pcm-dma.o: In function `cleanup_module':
      imx-pcm-dma.c:(.exit.text+0x0): multiple definition of `cleanup_module'
      sound/soc/fsl/imx-pcm-fiq.o:imx-pcm-fiq.c:(.exit.text+0x0): first defined here
      make[4]: *** [sound/soc/fsl/snd-soc-imx-pcm.o] Error 1
      
      The module snd-soc-imx-pcm is designed to link imx-pcm.o with
      imx-pcm-dma.o or imx-pcm-fiq.o depending on if option SND_SOC_IMX_PCM_DMA
      or SND_SOC_IMX_PCM_FIQ is enabled.  Both imx-pcm-dma and imx-pcm-fiq
      register their own module_platform_driver.  However, these two options
      are not mutually exclusive and can be enabled together.  And that's
      why we see above multiple init_module definition error.
      
      Instead of having both imx-pcm-dma and imx-pcm-fiq register their
      own platform_driver, we should do only once in imx-pcm.c.  Using
      platform_device_id to distinguish between imx-pcm-dma and imx-pcm-fiq,
      we can run-time call imx-pcm-dma/fiq specific initialization in .probe
      hook to have module snd-soc-imx-pcm work for both cases.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      1927661b
    • S
      Revert "ASoC: fsl: fix multiple definition of init_module" · 93d7b762
      Shawn Guo 提交于
      This reverts commit 25b8d314.
      
      While the commit fixes multiple init_module definition error with
      module build, it breaks build when both imx-pcm-fiq and imx-pcm-dma
      are built in as below.
      
        LD      sound/soc/fsl/snd-soc-fsl-ssi.o
        LD      sound/soc/fsl/snd-soc-fsl-utils.o
        LD      sound/soc/fsl/snd-soc-imx-ssi.o
        LD      sound/soc/fsl/snd-soc-imx-audmux.o
        LD      sound/soc/fsl/snd-soc-imx-pcm-fiq.o
        LD      sound/soc/fsl/snd-soc-imx-pcm-dma.o
        LD      sound/soc/fsl/snd-soc-eukrea-tlv320.o
        LD      sound/soc/fsl/snd-soc-imx-sgtl5000.o
        LD      sound/soc/fsl/snd-soc-imx-mc13783.o
        LD      sound/soc/fsl/built-in.o
      sound/soc/fsl/snd-soc-imx-pcm-dma.o: In function `imx_pcm_free':
      imx-pcm.c:(.text+0x464): multiple definition of `imx_pcm_free'
      sound/soc/fsl/snd-soc-imx-pcm-fiq.o:imx-pcm-fiq.c:(.text+0x1a8): first defined here
      sound/soc/fsl/snd-soc-imx-pcm-dma.o: In function `snd_imx_pcm_mmap':
      imx-pcm.c:(.text+0x35c): multiple definition of `snd_imx_pcm_mmap'
      sound/soc/fsl/snd-soc-imx-pcm-fiq.o:imx-pcm-fiq.c:(.text+0xa0): first defined here
      sound/soc/fsl/snd-soc-imx-pcm-dma.o: In function `imx_pcm_new':
      imx-pcm.c:(.text+0x3dc): multiple definition of `imx_pcm_new'
      sound/soc/fsl/snd-soc-imx-pcm-fiq.o:imx-pcm-fiq.c:(.text+0x120): first defined here
      make[4]: *** [sound/soc/fsl/built-in.o] Error 1
      
      Let's revert the commit and find a proper fix for multiple init_module
      definition error later.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      93d7b762
  8. 23 1月, 2013 1 次提交
  9. 12 1月, 2013 1 次提交
    • S
      ASoC: fsl: fix multiple definition of init_module · 25b8d314
      Shawn Guo 提交于
      With commit f2818d07 (ASoC: fsl: fix miscompilation of snd-soc-imx-pcm),
      we will see the following build error when building modules with
      CONFIG_SND_IMX_SOC=m in imx_v6_v7_defconfig.
      
        CC [M]  sound/soc/fsl/phycore-ac97.o
        LD [M]  sound/soc/fsl/snd-soc-fsl-ssi.o
        LD [M]  sound/soc/fsl/snd-soc-fsl-utils.o
        LD [M]  sound/soc/fsl/snd-soc-imx-ssi.o
        LD [M]  sound/soc/fsl/snd-soc-imx-audmux.o
        LD [M]  sound/soc/fsl/snd-soc-imx-pcm.o
      sound/soc/fsl/imx-pcm-dma.o: In function `init_module':
      imx-pcm-dma.c:(.init.text+0x0): multiple definition of `init_module'
      sound/soc/fsl/imx-pcm-fiq.o:imx-pcm-fiq.c:(.init.text+0x0): first defined here
      sound/soc/fsl/imx-pcm-dma.o: In function `cleanup_module':
      imx-pcm-dma.c:(.exit.text+0x0): multiple definition of `cleanup_module'
      sound/soc/fsl/imx-pcm-fiq.o:imx-pcm-fiq.c:(.exit.text+0x0): first defined here
      make[4]: *** [sound/soc/fsl/snd-soc-imx-pcm.o] Error 1
      
      Instead of using bool for SND_SOC_IMX_PCM_FIQ and SND_SOC_IMX_PCM_DMA
      to fix the original issue, we should completely remove SND_SOC_IMX_PCM
      and have imx-pcm.o statically linked with imx-pcm-fiq.o or imx-pcm-dma.o.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      25b8d314
  10. 03 1月, 2013 1 次提交
  11. 09 12月, 2012 1 次提交
  12. 28 11月, 2012 2 次提交
    • L
      ASoC: fsl: fix miscompilation of snd-soc-imx-pcm · f2818d07
      Lothar Waßmann 提交于
      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: NLothar Waßmann <LW@KARO-electronics.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f2818d07
    • L
      ASoC: fsl: fix miscompilation of snd-soc-imx-pcm · 20dd9e5e
      Lothar Waßmann 提交于
      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: NLothar Waßmann <LW@KARO-electronics.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      20dd9e5e
  13. 23 11月, 2012 2 次提交
  14. 24 10月, 2012 1 次提交
  15. 22 10月, 2012 2 次提交
  16. 15 10月, 2012 2 次提交
  17. 28 9月, 2012 1 次提交
  18. 22 9月, 2012 3 次提交
  19. 19 9月, 2012 8 次提交
  20. 17 9月, 2012 1 次提交
  21. 14 9月, 2012 1 次提交
  22. 06 9月, 2012 1 次提交
  23. 21 8月, 2012 1 次提交
  24. 08 8月, 2012 1 次提交
  25. 04 8月, 2012 1 次提交