17 Aug
2011
17 Aug
'11
9:50 a.m.
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@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.