From: Mike Frysinger Date: Wed, 12 Jan 2011 00:57:33 +0000 (-0500) Subject: ASoC: Blackfin AC97: fix build error after multi-component update X-Git-Tag: upstream/snapshot3+hdmi~11288^2~33^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9c2048915048d605fd76539ddd96f00d593e1eb;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: Blackfin AC97: fix build error after multi-component update We need to tweak how we query the active capture/playback state after the recent overhauls of common code. Signed-off-by: Mike Frysinger Acked-by: Liam Girdwood Signed-off-by: Mark Brown Cc: stable@kernel.org --- diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index c5f856e..ffbac26 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c @@ -260,9 +260,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; }