]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: Blackfin AC97: fix build error after multi-component update
authorMike Frysinger <vapier@gentoo.org>
Wed, 12 Jan 2011 00:57:33 +0000 (19:57 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:28 +0000 (12:46 -0400)
commit e9c2048915048d605fd76539ddd96f00d593e1eb upstream.

We need to tweak how we query the active capture/playback state after
the recent overhauls of common code.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/soc/blackfin/bf5xx-ac97.c

index 523b7fc33f4e7f94b5d1f6f6ffd89f9e904479c5..b69cd4b4d3f0943fe19776f7f983cc1b8f6b6d53 100644 (file)
@@ -261,9 +261,9 @@ static int bf5xx_ac97_suspend(struct snd_soc_dai *dai)
        pr_debug("%s : sport %d\n", __func__, dai->id);
        if (!dai->active)
                return 0;
-       if (dai->capture.active)
+       if (dai->capture_active)
                sport_rx_stop(sport);
-       if (dai->playback.active)
+       if (dai->playback_active)
                sport_tx_stop(sport);
        return 0;
 }