1. 01 6月, 2014 9 次提交
  2. 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
  3. 21 5月, 2014 9 次提交
  4. 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
  5. 24 4月, 2014 1 次提交
  6. 15 4月, 2014 9 次提交
  7. 08 4月, 2014 1 次提交
    • N
      ASoC: fsl_sai: Fix Bit Clock Polarity configurations · ef33bc32
      Nicolin Chen 提交于
      The BCP bit in TCR4/RCR4 register rules as followings:
        0 Bit clock is active high with drive outputs on rising edge
          and sample inputs on falling edge.
        1 Bit clock is active low with drive outputs on falling edge
          and sample inputs on rising edge.
      
      For all formats currently supported in the fsl_sai driver, they're exactly
      sending data on the falling edge and sampling on the rising edge.
      
      However, the driver clears this BCP bit for all of them which results click
      noise when working with SGTL5000 and big noise with WM8962.
      
      Thus this patch corrects the BCP settings for all the formats here to fix
      the nosie issue.
      Signed-off-by: NNicolin Chen <Guangyu.Chen@freescale.com>
      Acked-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      ef33bc32
  8. 27 3月, 2014 1 次提交
  9. 25 3月, 2014 3 次提交
  10. 07 3月, 2014 1 次提交
  11. 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
  12. 03 3月, 2014 1 次提交