mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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>
This commit is contained in:
parent
d37777a13b
commit
f31e08e160
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user