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>
This commit is contained in:
parent
69b91bc155
commit
005967a1df
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ static void jz4740_i2s_shutdown(struct snd_pcm_substream *substream,
|
||||||
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
|
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
|
||||||
uint32_t conf;
|
uint32_t conf;
|
||||||
|
|
||||||
if (!dai->active)
|
if (dai->active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
conf = jz4740_i2s_read(i2s, JZ_REG_AIC_CONF);
|
conf = jz4740_i2s_read(i2s, JZ_REG_AIC_CONF);
|
||||||
|
|
Reference in a new issue