ASoC: JZ4740: Fix i2s shutdown
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 30 Apr 2011 20:28:20 +0000 (22:28 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 May 2011 17:48:24 +0000 (18:48 +0100)
commit005967a1df80980acb47c72d758ec05059105492
treed020956ddc5e117d9679b4fa05eead5b02efc4bd
parent69b91bc1551a2fc746a01fea9d3291e60be3780d
ASoC: JZ4740: Fix i2s shutdown

The i2s shutdown callback has the check whether it should be disabled reversed.
Currently it is disabled if another stream is still active, but kept enabled if
the last stream is closed. This patch fixes it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/jz4740/jz4740-i2s.c