1. 17 6月, 2014 1 次提交
    • T
      ASoC: fsl-ssi: fix do_div build warning in fsl_ssi_set_bclk() · acf2c60a
      Timur Tabi 提交于
      do_div() requires that the first parameter is a 64-bit integer,
      which but clkrate was defined as an unsigned long.  This caused
      the following warnings:
      
       CC      sound/soc/fsl/fsl_ssi.o
      sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_set_bclk':
      sound/soc/fsl/fsl_ssi.c:593:3: warning: comparison of distinct pointer types lacks a cast
      sound/soc/fsl/fsl_ssi.c:593:3: warning: right shift count >= width of type
      sound/soc/fsl/fsl_ssi.c:593:3: warning: passing argument 1 of '__div64_32' from incompatible pointer type
      include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'long unsigned int *'
      Signed-off-by: NTimur Tabi <timur@tabi.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      acf2c60a
  2. 12 6月, 2014 1 次提交
    • G
      ASoC: fsl: Fix build problem · 3d5f615f
      Guenter Roeck 提交于
      Commit 43248122 (ASoC: fsl-ssi: Use regmap) removed struct ccsr_ssi.
      Unfortunately, the structure is still used. This causes
      mpc85xx_smp_defconfig and mpc85xx_defconfig builds to fail with
      
      sound/soc/fsl/fsl_dma.c:926:50:
        error: invalid use of undefined type 'struct ccsr_ssi'
        dma->ssi_stx_phys = res.start + offsetof(struct ccsr_ssi, stx0);
      ound/soc/fsl/fsl_dma.c:927:50:
        error: invalid use of undefined type 'struct ccsr_ssi'
        dma->ssi_srx_phys = res.start + offsetof(struct ccsr_ssi, srx0);
      
      Fix by using constants, similar to original commit.
      
      Cc: Markus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      3d5f615f
  3. 01 6月, 2014 9 次提交
  4. 26 5月, 2014 1 次提交
    • F
      ASoC: fsl_ssi: Add suspend/resume support · b20e53a8
      Fabio Estevam 提交于
      Doing a suspend/resume sequence while playing an audio track in the backgroung
      causes broken audio right after resume:
      
      root@freescale /$ aplay clarinet.wav &
      
      root@freescale /home$ Playing WAVE 'clarinet.wav' : Signed 16 bit Little Endian,
       Rate 44100 Hz, Mono
      
      root@freescale /home$ echo mem > /sys/power/state
      PM: Syncing filesystems ... done.
      Freezing user space processes ... (elapsed 0.002 seconds) done.
      Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
      Suspending console(s) (use no_console_suspend to debug)
      PM: suspend of devices complete after 37.082 msecs
      PM: suspend devices took 0.040 seconds
      PM: late suspend of devices complete after 4.234 msecs
      PM: noirq suspend of devices complete after 4.618 msecs
      Disabling non-boot CPUs ...
      PM: noirq resume of devices complete after 4.013 msecs
      PM: early resume of devices complete after 4.000 msecs
      PM: resume of devices complete after 68.907 msecs
      PM: resume devices took 0.070 seconds
      Restarting tasks ... Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      Suspended. Trying resume. Failed. Restarting stream. Done.
      ....
      
      Add SNDRV_PCM_TRIGGER_RESUME/SUSPEND cases so that we can gracefully handle
      system suspend/resume.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: NShawn Guo <shawn.guo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      b20e53a8
  5. 21 5月, 2014 9 次提交
  6. 13 5月, 2014 4 次提交
  7. 06 5月, 2014 5 次提交
  8. 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
  9. 01 5月, 2014 1 次提交
    • A
      ASoC: CS42L51 and WM8962 codecs depend on INPUT · a2915d4f
      Arnd Bergmann 提交于
      Building ARM randconfig got into a situation where CONFIG_INPUT
      is turned off and SND_SOC_ALL_CODECS is turned on, which failed
      for two codecs trying to use the input subsystem. Some other
      drivers also select one of these codecs and consequently need an
      explicit dependency added.
      
      Appending to the dependency list seems the easiest way out,
      since this is not a practical limitation. If anyone really
      needs to build these codecs for a kernel with no input support,
      a more sophisticated solution can be implemented.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NXia Kaixu <kaixu.xia@linaro.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      a2915d4f
  10. 30 4月, 2014 1 次提交
  11. 24 4月, 2014 3 次提交
  12. 18 4月, 2014 1 次提交
  13. 15 4月, 2014 1 次提交