projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a38336
)
ASoC: omap-pcm: Free dma buffers in case of error.
author
Oleg Matcovschi
<
[email protected]
>
Wed, 25 Apr 2012 02:02:02 +0000
(19:02 -0700)
committer
Liam Girdwood
<
[email protected]
>
Fri, 4 May 2012 11:09:28 +0000
(12:09 +0100)
Signed-off-by: Oleg Matcovschi <
[email protected]
>
Acked-by: Peter Ujfalusi <
[email protected]
>
Acked-by: Jarkko Nikula <
[email protected]
>
Acked-by: Mark Brown <
[email protected]
>
Signed-off-by: Liam Girdwood <
[email protected]
>
sound/soc/omap/omap-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/omap/omap-pcm.c
b/sound/soc/omap/omap-pcm.c
index a59bd352d34231981a99998a27ce6ad611f584ec..5a649da9122a3e798713999a766885f0f732a5cd 100644
(file)
--- a/
sound/soc/omap/omap-pcm.c
+++ b/
sound/soc/omap/omap-pcm.c
@@
-401,6
+401,10
@@
static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
}
out:
+ /* free preallocated buffers in case of error */
+ if (ret)
+ omap_pcm_free_dma_buffers(pcm);
+
return ret;
}