Commit f31e08e1 authored by Richard Zhao's avatar Richard Zhao Committed by Mark Brown

ASoC: imx-pcm-dma: open function failed when snd_dmaengine_pcm_open fail

snd_imx_open should return error code returned by snd_dmaengine_pcm_open.
Signed-off-by: default avatarRichard Zhao <richard.zhao@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d37777a1
...@@ -120,7 +120,7 @@ static int snd_imx_open(struct snd_pcm_substream *substream) ...@@ -120,7 +120,7 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
ret = snd_dmaengine_pcm_open(substream, filter, dma_data); ret = snd_dmaengine_pcm_open(substream, filter, dma_data);
if (ret) { if (ret) {
kfree(dma_data); kfree(dma_data);
return 0; return ret;
} }
snd_dmaengine_pcm_set_data(substream, dma_data); snd_dmaengine_pcm_set_data(substream, dma_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment