1. 17 8月, 2011 1 次提交
    • S
      ASoC: Fix check for symmetric rate enforcement · 25b76791
      Sascha Hauer 提交于
      The ASoC core tries to not enforce symmetric rates when
      two streams open simultaneously. It does so by checking
      rtd->rate being zero. This works exactly once after booting
      because it is not set to zero again when the streams close.
      Fix this by setting rtd->rate when no active stream is left.
      
      [This leads to lots of warnings about not enforcing the symmetry in some
      situations as there's a race in the userspace API where we know we've
      got two applications but don't know what rates they want to set.
      -- broonie ]
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      25b76791
  2. 15 8月, 2011 1 次提交
  3. 10 6月, 2011 2 次提交
    • L
      ASoC: pcm - rename snd_codec_close() to snd_pcm_close(). · 91d5e6b4
      Liam Girdwood 提交于
      Make sure we follow naming convention for all PCM ops.
      Signed-off-by: NLiam Girdwood <lrg@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      91d5e6b4
    • L
      ASoC: core - PCM mutex per rtd · b8c0dab9
      Liam Girdwood 提交于
      In preparation for the new ASoC Dynamic PCM support (AKA DSP support).
      
      The new ASoC Dynamic PCM core allows DAIs to be dynamically re-routed
      at runtime between the PCM device end (or Frontend - FE) and the physical DAI
      (Backend - BE) using regular kcontrols (just like a hardware CODEC routes
      audio in the analog domain). The Dynamic PCM core therefore must be
      able to call PCM operations for both the Frontend and Backend(s) DAIs at
      the same time.
      
      Currently we have a global pcm_mutex that is used to serialise
      the ASoC PCM operations. This patch removes the global mutex
      and adds a mutex per RTD allowing the PCM operations to be reentrant and
      allow control of more than one DAI at at time. e.g. a frontend PCM hw_params()
      could configure multiple backend DAI hw_params() with similar or different
      hw parameters at the same time.
      Signed-off-by: NLiam Girdwood <lrg@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      b8c0dab9
  4. 09 6月, 2011 1 次提交