Skip to content

Commit

Permalink
ASoC: JZ4740: Fix i2s shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed May 3, 2011
1 parent 69b91bc commit 005967a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/jz4740/jz4740-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void jz4740_i2s_shutdown(struct snd_pcm_substream *substream,
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
uint32_t conf;

if (!dai->active)
if (dai->active)
return;

conf = jz4740_i2s_read(i2s, JZ_REG_AIC_CONF);
Expand Down

0 comments on commit 005967a

Please sign in to comment.