1. 01 6月, 2014 2 次提交
  2. 02 5月, 2014 3 次提交
    • A
      ASoC: fsl: select SND_SOC_IMX_PCM_DMA where needed · 31ee2bfd
      Arnd Bergmann 提交于
      Since commit 204dec93 "ASoC: fsl: Allow to select individual common
      options", it is possible to enable SND_SOC_FSL_SSI and SND_SOC_FSL_SPDIF
      manually, either as loadable modules or built-in. This unfortunately
      leads to a link error if one or both of them are built-in, while
      the imx-pcm-dma framework is a loadable module:
      
      sound/built-in.o: In function `fsl_ssi_probe':
      :(.text+0x51fb8): undefined reference to `imx_pcm_dma_init'
      sound/built-in.o: In function `fsl_spdif_probe':
      :(.text+0x52e20): undefined reference to `imx_pcm_dma_init'
      
      This changes Kconfig to prevent this case by using 'select' to turn
      on the imx-pcm-dma code from both drivers. For consistency, we also
      turn on the imx-pcm-fiq code, which is an alternative to the dma
      implementation.
      
      Note that imx-pcm-fiq is platform dependent, so we must not enable
      that unless we are building a kernel for i.MX. Note also the
      "if SND_IMX_SOC != n" syntax as opposed to the normal "if SND_IMX_SOC".
      This is needed to avoid turning on the options as 'm' if 'SND_IMX_SOC'
      is a module.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      31ee2bfd
    • X
      ASoC: fsl: Allow to select ESAI device individually · 40e3b934
      Xiubo Li 提交于
      This will be useful for out-of-tree drivers since in-tree drivers
      could select it automatically.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      40e3b934
    • X
      ASoC: fsl: Allow to select SAI device individually · b71fc4e6
      Xiubo Li 提交于
      This will be useful for out-of-tree drivers since in-tree drivers
      could select it automatically.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      b71fc4e6
  3. 15 4月, 2014 2 次提交
  4. 25 3月, 2014 2 次提交
  5. 07 3月, 2014 1 次提交
  6. 05 3月, 2014 1 次提交
    • M
      ASoC: fsl: Don't select FIQ from Eukrea · d433570d
      Mark Brown 提交于
      There is no point in using FIQ if DMA is available (it is selected) and
      selecting FIQ currently breaks the build on non-i.MX platforms.  If FIQ
      is actually required the build will need to be restricted or have a
      select for the relevant FIQ code adding.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      d433570d
  7. 03 3月, 2014 1 次提交
  8. 11 2月, 2014 1 次提交
  9. 21 1月, 2014 1 次提交
  10. 10 1月, 2014 1 次提交
    • N
      ASoC: fsl_esai: Add ESAI CPU DAI driver · 43d24e76
      Nicolin Chen 提交于
      This patch implements a device-tree-only CPU DAI driver for Freescale ESAI
      controller that supports:
      
       - 12 channels playback and 8 channels record.
         [ Some of the inner transmitters and receivers are sharing same group of
           pins. So the maxmium 12 output or 8 input channels are only valid if
           there is no pin conflict occurring to it. ]
      
       - Independent (asynchronous mode) or shared (synchronous mode) transmit and
         receive sections with separate or shared internal/external clocks and frame
         syncs, operating in Master or Slave mode.
         [ Current ALSA seems not to allow CPU DAI drivers to configure DAI format
           separately for PLAYBACK and CAPTURE. So this first version only supports
           the case that uses the same DAI format for both directions. ]
      
       - Various DAI formats: I2S, Left-Justified, Right-Justified, DSP-A and DSP-B.
      
       - Programmable word length (8, 16, 20 or 24bits)
      
       - Flexible selection between system clock or external oscillator as input
         clock source, programmable internal clock divider and frame sync generation.
      Signed-off-by: NNicolin Chen <Guangyu.Chen@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      43d24e76
  11. 01 1月, 2014 1 次提交
    • N
      ASoC: imx-spdif: Use snd-soc-dummy CODEC driver to link card · 14c3aa98
      Nicolin Chen 提交于
      This is a quick fix for the below two issues when building spdif as modules.
      
      1) If modprobing modules in order: (Step 1) snd-soc-fsl-spdif -> (Step 2)
      snd-soc-imx-spdif -> (Step 3) snd-soc-spdif-tx/rx, we will fail to create
      imx-spdif card and dai link unless we rmmod snd-soc-imx-spdif and modprobe
      it again due to the execution platform_driver_unregister() in probe() when
      meeting -EPROBE_DEFER at Step 2.
      
      2) After "imx-spdif sound-spdif.17: dit-hifi <-> 2004000.spdif mapping ok",
      'rmmod snd-soc-imx-spdif' would cause kernel dump with warning:
      WARNING: CPU: 0 PID: 1301 at /home/rmk/git/linux-rmk/fs/sysfs/dir.c:915 sysfs_hash_and_remove+0x84/0x90()
      sysfs: can not remove 'dapm_widget', no directory
      This should be caused by disordered resourse releasing of the whole link.
      And trying to unregister the card and then CODEC dev can't fix this issue.
      
      Thus this patch just provides a simple fix to these two bugs by using the
      snd-soc-dummy in the core instead of seperate snd-soc-spdif-tx/rx so that
      there's no need to handle the registering and unregistering of CODEC or
      CODEC dai any more.
      Signed-off-by: NNicolin Chen <Guangyu.Chen@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      14c3aa98
  12. 19 12月, 2013 1 次提交
  13. 09 9月, 2013 1 次提交
  14. 30 8月, 2013 1 次提交
  15. 29 8月, 2013 1 次提交
  16. 22 8月, 2013 1 次提交
  17. 18 8月, 2013 1 次提交
  18. 07 8月, 2013 1 次提交
  19. 31 7月, 2013 1 次提交
    • F
      ASoC: fsl: Fix module build · 3f1a91aa
      Fabio Estevam 提交于
      Building imx_v6_v7_defconfig with all audio drivers as modules results in
      the folowing build error:
      
      ERROR: "imx_pcm_fiq_init" [sound/soc/fsl/snd-soc-imx-ssi.ko] undefined!
      ERROR: "imx_pcm_dma_init" [sound/soc/fsl/snd-soc-imx-ssi.ko] undefined!
      ERROR: "imx_pcm_fiq_exit" [sound/soc/fsl/snd-soc-imx-ssi.ko] undefined!
      ERROR: "imx_pcm_dma_exit" [sound/soc/fsl/snd-soc-imx-ssi.ko] undefined!
      ERROR: "imx_pcm_dma_init" [sound/soc/fsl/snd-soc-fsl-ssi.ko] undefined!
      ERROR: "imx_pcm_dma_exit" [sound/soc/fsl/snd-soc-fsl-ssi.ko] undefined!
      
      Fix this by allowing SND_SOC_IMX_PCM_FIQ and SND_SOC_IMX_PCM_DMA to be also
      built as modules and by using 'IS_ENABLED' to cover the module case.
      Reported-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      3f1a91aa
  20. 18 7月, 2013 1 次提交
  21. 16 7月, 2013 1 次提交
  22. 12 6月, 2013 1 次提交
  23. 15 5月, 2013 1 次提交
  24. 17 4月, 2013 1 次提交
  25. 28 1月, 2013 1 次提交
    • 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
  26. 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
  27. 28 11月, 2012 1 次提交
    • 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
  28. 24 10月, 2012 1 次提交
  29. 22 10月, 2012 1 次提交
  30. 22 9月, 2012 1 次提交
  31. 18 5月, 2012 1 次提交
  32. 04 4月, 2012 2 次提交
  33. 01 4月, 2012 2 次提交