]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix check for symmetric rate enforcement
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 17 Aug 2011 07:20:01 +0000 (09:20 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Aug 2011 07:22:09 +0000 (16:22 +0900)
commitd6ea237d57737a174c3a5cf4a415d68eabed4a90
tree9b7520e60fd332a5b52047427e732c23f23dbbc6
parenta7d30e783379b8ef6b1db9c51d5c89b236611ffe
ASoC: Fix check for symmetric rate enforcement

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: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-pcm.c