Skip to content

Commit

Permalink
ASoC: imx-pcm-dma: open function failed when snd_dmaengine_pcm_open fail
Browse files Browse the repository at this point in the history
snd_imx_open should return error code returned by snd_dmaengine_pcm_open.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Richard Zhao authored and Mark Brown committed Sep 19, 2012
1 parent d37777a commit f31e08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/imx-pcm-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
ret = snd_dmaengine_pcm_open(substream, filter, dma_data);
if (ret) {
kfree(dma_data);
return 0;
return ret;
}

snd_dmaengine_pcm_set_data(substream, dma_data);
Expand Down

0 comments on commit f31e08e

Please sign in to comment.