diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-09-18 05:20:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-18 22:52:43 -0400 |
commit | f31e08e160d646952a5142e3f92f3fcdc645a09b (patch) | |
tree | 23168aac8f6621b9e809117c5f450b283b547d24 /sound/soc/fsl | |
parent | d37777a13b4c4b32e274013846d739e5bbbf6f8d (diff) |
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: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-pcm-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c index a23505a9ae64..9a15bc4bd570 100644 --- a/sound/soc/fsl/imx-pcm-dma.c +++ b/sound/soc/fsl/imx-pcm-dma.c | |||
@@ -120,7 +120,7 @@ static int snd_imx_open(struct snd_pcm_substream *substream) | |||
120 | ret = snd_dmaengine_pcm_open(substream, filter, dma_data); | 120 | ret = snd_dmaengine_pcm_open(substream, filter, dma_data); |
121 | if (ret) { | 121 | if (ret) { |
122 | kfree(dma_data); | 122 | kfree(dma_data); |
123 | return 0; | 123 | return ret; |
124 | } | 124 | } |
125 | 125 | ||
126 | snd_dmaengine_pcm_set_data(substream, dma_data); | 126 | snd_dmaengine_pcm_set_data(substream, dma_data); |