From 9d914cecfe9480d73fcb59d61eb1382cbc5adaf6 Mon Sep 17 00:00:00 2001 From: Sebastien Guiriec Date: Sun, 11 Sep 2011 03:37:12 +0200 Subject: ASoC: OMAP ABE: Update mute location of frontends When stopping a stream it is better to send the mute of the frontend port before the disable. Change-Id: I04713276156ad85a250bb4602b409232dfd41fc6 Signed-off-by: Sebastien Guiriec --- sound/soc/omap/omap-abe.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sound/soc/omap/omap-abe.c') diff --git a/sound/soc/omap/omap-abe.c b/sound/soc/omap/omap-abe.c index 316173a..6d2fd97 100644 --- a/sound/soc/omap/omap-abe.c +++ b/sound/soc/omap/omap-abe.c @@ -746,24 +746,23 @@ static void playback_trigger(struct snd_pcm_substream *substream, unmute_fe_port(substream, dai, stream); break; case SNDRV_PCM_TRIGGER_PAUSE_PUSH: + /* mute FE port */ + mute_fe_port(substream, dai, stream); + /* disable Frontend sDMA */ disable_fe_port(substream, dai, stream); snd_soc_dsp_platform_trigger(substream, cmd, fe->platform); - - /* mute FE port */ - mute_fe_port(substream, dai, stream); break; case SNDRV_PCM_TRIGGER_STOP: /* does this trigger() apply to the FE ? */ if (snd_soc_dsp_is_trigger_for_fe(fe, stream)) { + /* mute FE port */ + mute_fe_port(substream, dai, stream); /* disable the transfer */ disable_fe_port(substream, dai, stream); snd_soc_dsp_platform_trigger(substream, cmd, fe->platform); - - /* mute FE port */ - mute_fe_port(substream, dai, stream); } /* disable BE ports */ -- cgit v1.1