From: Sascha Hauer Date: Wed, 17 Aug 2011 07:20:01 +0000 (+0200) Subject: ASoC: Fix check for symmetric rate enforcement X-Git-Tag: v3.3-rc1~14^2~797^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b7679136fd85b1e5197e36a0ca126163e89590;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed