aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-12-22 16:17:35 -0600
committerSimon Wilson <simonwilson@google.com>2012-02-01 17:14:29 -0800
commit1d363fe34dc13202bfc4a09dc65e1d25e936ed1a (patch)
treef92a27ed628d1767a5277aca4e931b947516e7e5 /sound
parente41260ae321d2132f854a76aedb3e2d227dd7f93 (diff)
downloadkernel_samsung_tuna-1d363fe34dc13202bfc4a09dc65e1d25e936ed1a.zip
kernel_samsung_tuna-1d363fe34dc13202bfc4a09dc65e1d25e936ed1a.tar.gz
kernel_samsung_tuna-1d363fe34dc13202bfc4a09dc65e1d25e936ed1a.tar.bz2
ASoC: DSP: Clear BE runtime in startup unwind
Set BE's runtime to NULL when unwinding after startup errors. Change-Id: I7fb11dff3e623b79334345e563bb3f0da0c6823c Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-dsp.c b/sound/soc/soc-dsp.c
index c04b24a..199b428 100644
--- a/sound/soc/soc-dsp.c
+++ b/sound/soc/soc-dsp.c
@@ -410,6 +410,7 @@ static int soc_dsp_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream)
dev_err(&be->dev, "BE open failed %d\n", err);
be->dsp[stream].users--;
be->dsp[stream].state = SND_SOC_DSP_STATE_CLOSE;
+ be_substream->runtime = NULL;
goto unwind;
}
be->dsp[stream].state = SND_SOC_DSP_STATE_OPEN;