Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9c20489 authored by Mike Frysinger's avatar Mike Frysinger Committed by Mark Brown
Browse files

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: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
parent 15d2e22b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -260,9 +260,9 @@ static int bf5xx_ac97_suspend(struct snd_soc_dai *dai)
	pr_debug("%s : sport %d\n", __func__, dai->id);
	pr_debug("%s : sport %d\n", __func__, dai->id);
	if (!dai->active)
	if (!dai->active)
		return 0;
		return 0;
	if (dai->capture.active)
	if (dai->capture_active)
		sport_rx_stop(sport);
		sport_rx_stop(sport);
	if (dai->playback.active)
	if (dai->playback_active)
		sport_tx_stop(sport);
		sport_tx_stop(sport);
	return 0;
	return 0;
}
}