1. 07 1月, 2014 2 次提交
  2. 01 1月, 2014 1 次提交
  3. 30 12月, 2013 1 次提交
  4. 04 12月, 2013 1 次提交
  5. 02 12月, 2013 1 次提交
  6. 28 11月, 2013 1 次提交
  7. 24 11月, 2013 2 次提交
    • N
      ASoC: soc-pcm: move DAIs parameters cleaning into hw_free() · d3383420
      Nicolin Chen 提交于
      We're now applying soc_hw_params_symmetry() to reject unmatched parameters
      while we clear parameters in soc_pcm_close(). So here's a use case might be
      broken by this mechanism: aplay -Dhw:0 44100.wav 48000.wav 32000.wav
      
      In this case, we call soc_pcm_open()->soc_pcm_hw_params()->soc_pcm_hw_free()
      ->soc_pcm_hw_params()->soc_pcm_hw_free()->soc_pcm_close() in order. As we
      only clear parameters in soc_pcm_close(). The parameters would be remained
      in the system even if the playback of 44100.wav is finished.
      
      Thus, this patch is trying to move parameters cleaning into hw_free() so that
      the system can continue to serve this kind of use case.
      
      Also, since we set them in hw_params(), it should be better to clear them in
      hw_free() for symmetry.
      Signed-off-by: NNicolin Chen <b42378@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      d3383420
    • N
      ASoC: soc-pcm: add symmetry for channels and sample bits · 3635bf09
      Nicolin Chen 提交于
      Some SoCs can only work in mono or stereo mode at one time. So if
      we let them capture a mono stream while playing a stereo stream,
      there might be a problem occur to one of these two streams: double
      paced or slowed down.
      
      In soc-pcm.c, we have soc_pcm_apply_symmetry() to apply the rate
      symmetry. But we don't have one for channels.
      
      Likewise, we can treat symmetric_rate as a solution for those SoCs
      or CODECs which can not handle asymmetrical LRCLK. But it's also
      impossible for them to handle asymmetrical BCLK. And accodring to
      BCLK = LRCLK * channel number * slot size(fixed or sample bits),
      sample bits might also be a problem if they are not using a fixed
      slot size.
      
      Thus, this patch applys symmetry for channels and sample bits.
      
      Meanwhile, there might be a race between two substreams if starting
      simultaneously. Previously, we only added warning to compalin but
      still using conservative way to let it carry on. However, this patch
      rejects the second stream with any unmatched parameter to make sure
      the first existing stream won't be broken.
      Signed-off-by: NNicolin Chen <b42378@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      3635bf09
  8. 22 11月, 2013 2 次提交
  9. 21 11月, 2013 3 次提交
  10. 20 11月, 2013 7 次提交
  11. 19 11月, 2013 3 次提交
  12. 18 11月, 2013 2 次提交
  13. 15 11月, 2013 6 次提交
  14. 14 11月, 2013 5 次提交
  15. 13 11月, 2013 3 次提交