1. 05 1月, 2017 1 次提交
    • C
      ASoC: fsl_ssi: set fifo watermark to more reliable value · 4ee437fb
      Caleb Crome 提交于
      The fsl_ssi fifo watermark is by default set to 2 free spaces (i.e.
      activate DMA on FIFO when only 2 spaces are left.)  This means the
      DMA must service the fifo within 2 audio samples, which is just not
      enough time  for many use cases with high data rate.  In many
      configurations the audio channel slips (causing l/r swap in stereo
      configurations, or channel slipping in multi-channel configurations).
      
      This patch gives more breathing room and allows the SSI to operate
      reliably by changing the fifio refill watermark to 8.
      
      There is no change in behavior for older chips (with an 8-deep fifo).
      Only the newer chips with a 15-deep fifo get the new behavior. I
      suspect a new fifo depth setting could be optimized on the older
      chips too, but I have not tested.
      Signed-off-by: NCaleb Crome <caleb@crome.org>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4ee437fb
  2. 30 9月, 2016 1 次提交
  3. 21 9月, 2016 2 次提交
  4. 30 6月, 2016 1 次提交
    • A
      ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode · 4f14f5c1
      Alexander Shiyan 提交于
      The i.MX51 datasheet says:
      Chapter 56.1.2.4 I2S Mode
      ...
      When I2S modes are entered (I2S master (01) or I2S slave (10)),
      the following settings are recommended:
      ...
      - TX Frame Rate should be 2 i.e. (STCCR[12:8] = 1)
      - RX Frame Rate should be 2 i.e. (SRCCR[12:8] = 1)
      
      Chapter 56.3.3.12 SSI Transmit and Receive Clock Control Registers (STCCR & SRCCR)
      ...
      Bits 12-8 DC4-DC0
      Frame Rate Divider Control. These bits are used to control the divide ratio
      for the programmable frame rate dividers. The divide ratio works on the word
      clock. In Normal mode, this ratio determines the word transfer rate.
      In Network mode, this ratio sets the number of words per frame. The divide
      ratio ranges from 1 to 32 in Normal mode and from 2 to 32 in Network mode.
      In Normal mode, a divide ratio of 1 (DC=00000) provides continuous periodic
      data word transfer. A bit-length frame sync must be used in this case.
      
      Function fsl_ssi_hw_params() setup Normal mode for MONO output,
      so with DC=0, SSI enters to continuous periodic data word transfer.
      To fix this, setup DC for any I2S mode.
      Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4f14f5c1
  5. 13 5月, 2016 6 次提交
  6. 29 4月, 2016 1 次提交
  7. 22 2月, 2016 2 次提交
  8. 25 1月, 2016 1 次提交
  9. 10 1月, 2016 2 次提交
  10. 25 11月, 2015 1 次提交
  11. 16 11月, 2015 1 次提交
  12. 06 10月, 2015 1 次提交
  13. 20 9月, 2015 1 次提交
  14. 15 8月, 2015 6 次提交
  15. 12 8月, 2015 1 次提交
  16. 07 7月, 2015 2 次提交
  17. 08 5月, 2015 1 次提交
  18. 17 4月, 2015 1 次提交
  19. 10 4月, 2015 2 次提交
  20. 05 3月, 2015 2 次提交
  21. 11 2月, 2015 1 次提交
  22. 15 1月, 2015 2 次提交
  23. 09 1月, 2015 1 次提交