Skip to contentSkip to conversation

ASoC: JZ4740: Fix i2s shutdown

PATCH Applied Lars-Peter Clausen 3 participants 3 messages Apr 30, 2011 – May 3, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/jz4740/jz4740-i2s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/jz4740/jz4740-i2s.c +1 -1
index 419bf4f..cd22a54 100644
@@ -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);
Signature · 1 line
1.7.2.5
Applied
#2 lore raw
In reply to Lars-Peter Clausen
Quoted 3 lines · Lars-Peter Clausen

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.

Applied, thanks.