[alsa-devel] [PATCH] ASoC: Fix check for symmetric rate enforcement
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Aug 17 08:50:16 CEST 2011
On Wed, Aug 17, 2011 at 08:27:53AM +0200, Sascha Hauer wrote:
> 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 clearing rtd->rate when no active stream is left.
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Applied, thanks. Though I suspect that in practice this may actually be
less robust due to the general raciness of the way we configure and
start the streams - I seem to recall the code works this way semi
deliberately so that we always have a rate selected; most systems only
ever use one rate on symmetric audio interfaces.
More information about the Alsa-devel
mailing list