An error occurred fetching the project authors.
  1. 27 Aug, 2014 1 commit
  2. 14 Apr, 2014 4 commits
    • Nicolin Chen's avatar
      ASoC: fsl_sai: Add clock controls for SAI · ca3e35c7
      Nicolin Chen authored
      The SAI mainly has the following clocks:
        bus clock
          control and configure registers and to generate synchronous
          interrupts and DMA requests.
      
        mclk1, mclk2, mclk3
          to generate the bit clock when the receiver or transmitter is
          configured for an internally generated bit clock.
      
      So this patch adds these clocks and their clock controls to the driver.
      
      [ To concern the old DTB cases, I've added a bit of extra code to make
        the driver compatible with them. And by marking clock NULL if failed
        to get, the clk_prepare() or clk_get_rate() would easily return 0
        so no further path should be broken. -- by Nicolin ]
      Signed-off-by: default avatarNicolin Chen <Guangyu.Chen@freescale.com>
      Acked-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      ca3e35c7
    • Nicolin Chen's avatar
      ASoC: fsl_sai: Add imx6sx platform support · c7540644
      Nicolin Chen authored
      The next coming i.MX6 Solo X SoC also contains SAI module while we use
      imp_pcm_init() for i.MX platform.
      
      So this patch adds one compatible route for imx6sx and updates the DT
      doc accordingly.
      Signed-off-by: default avatarNicolin Chen <Guangyu.Chen@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      c7540644
    • Nicolin Chen's avatar
      ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams · 8abba5d6
      Nicolin Chen authored
      We only enable one side interrupt for each stream since over/underrun
      on the opposite stream would be resulted from what we previously did,
      enabling TERE but remaining FRDE disabled, even though the xrun on the
      opposite direction will not break the current stream.
      Signed-off-by: default avatarNicolin Chen <Guangyu.Chen@freescale.com>
      Acked-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      8abba5d6
    • Nicolin Chen's avatar
      ASoC: fsl_sai: Fix buggy configurations in trigger() · e6b39846
      Nicolin Chen authored
      The current trigger() has two crucial problems:
      1) The DMA request enabling operations (FSL_SAI_CSR_FRDE) for Tx and Rx are
         now totally exclusive: It would fail to run simultaneous Tx-Rx cases.
      2) The TERE disabling operation depends on an incorrect condition -- active
         reference count that only gets increased in snd_pcm_open() and decreased
         in snd_pcm_close(): The TERE would never get cleared.
      
      So this patch overwrites the trigger function by following these rules:
      A) We continue to support tx-async-while-rx-sync-to-tx case alone, which's
         originally limited by this fsl_sai driver, but we make the code easy to
         modify for the further support of the opposite case.
      B) We enable both TE and RE for PLAYBACK stream or CAPTURE stream but only
         enabling the DMA request bit (FSL_SAI_CSR_FRDE) of the current direction
         due to the requirement of SAI -- For tx-async-while-rx-sync-to-tx case,
         the receiver is enabled only when both the transmitter and receiver are
         enabled.
      
      Tested cases:
      a) aplay test.wav -d5
      b) arecord -r44100 -c2 -fS16_LE test.wav -d5
      c) arecord -r44100 -c2 -fS16_LE -d5 | aplay
      d) (aplay test2.wav &); sleep 1; arecord -r44100 -c2 -fS16_LE test.wav -d1
      e) (arecord -r44100 -c2 -fS16_LE test.wav -d5 &); sleep 1; aplay test.wav -d1
      Signed-off-by: default avatarNicolin Chen <Guangyu.Chen@freescale.com>
      Acked-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      e6b39846
  3. 27 Mar, 2014 1 commit
  4. 27 Feb, 2014 1 commit
  5. 10 Feb, 2014 1 commit
  6. 18 Dec, 2013 1 commit