1. 16 7月, 2013 1 次提交
  2. 15 7月, 2013 4 次提交
  3. 04 7月, 2013 1 次提交
  4. 27 6月, 2013 1 次提交
  5. 12 6月, 2013 2 次提交
  6. 10 6月, 2013 1 次提交
    • F
      ASoC: sgtl5000: Let the codec acquire its clock · 9e13f345
      Fabio Estevam 提交于
      On a mx6qsabrelite board the following error happens on probe:
      
      sgtl5000: probe of 0-000a failed with error -5
      imx-sgtl5000 sound.13: ASoC: CODEC (null) not registered
      imx-sgtl5000 sound.13: snd_soc_register_card failed (-517)
      platform sound.13: Driver imx-sgtl5000 requests probe defer
      
      Prior to reading the codec ID we need to turn the SYS_MCLK clock, so let's
      enable the codec clock inside sgtl5000_i2c_probe().
      
      Also remove the codec clock enable/disable functions from the machine driver.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      9e13f345
  7. 18 5月, 2013 1 次提交
  8. 15 5月, 2013 5 次提交
  9. 13 5月, 2013 2 次提交
  10. 17 4月, 2013 3 次提交
  11. 16 4月, 2013 1 次提交
  12. 05 4月, 2013 1 次提交
  13. 04 4月, 2013 1 次提交
  14. 27 3月, 2013 4 次提交
  15. 26 3月, 2013 1 次提交
  16. 25 3月, 2013 1 次提交
  17. 20 3月, 2013 1 次提交
  18. 13 3月, 2013 4 次提交
  19. 12 2月, 2013 1 次提交
  20. 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
  21. 23 1月, 2013 1 次提交
  22. 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