[PATCH] ASoC: pxa-ssp: disable only when the ssp dai is active

Eric Miao eric.miao at marvell.com
Thu Feb 5 11:39:20 CET 2009


Signed-off-by: Eric Miao <eric.miao at marvell.com>
---

Typo?

 sound/soc/pxa/pxa-ssp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c
index 4a973ab..3f12b45 100644
--- a/sound/soc/pxa/pxa-ssp.c
+++ b/sound/soc/pxa/pxa-ssp.c
@@ -238,7 +238,7 @@ static void pxa_ssp_shutdown(struct
snd_pcm_substream *substream,
 	struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
 	struct ssp_priv *priv = cpu_dai->private_data;

-	if (!cpu_dai->active) {
+	if (cpu_dai->active) {
 		ssp_disable(&priv->dev);
 		clk_disable(priv->dev.ssp->clk);
 	}
-- 
1.6.0.4


More information about the Alsa-devel mailing list