projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97bf6af
)
ASoC: txx9: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 2 Jan 2015 12:56:13 +0000
(13:56 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 5 Jan 2015 21:30:20 +0000
(21:30 +0000)
The ALSA core takes care that all preallocated memory is freed when the PCM
itself is freed. There is no need to do this manually in the driver.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/txx9/txx9aclc.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/txx9/txx9aclc.c
b/sound/soc/txx9/txx9aclc.c
index 070e44e251ceef9ea128edf8c39ab08c780b2ed3..88eacfd83da6780b3d2419ab2173fa3d7e255916 100644
(file)
--- a/
sound/soc/txx9/txx9aclc.c
+++ b/
sound/soc/txx9/txx9aclc.c
@@
-282,11
+282,6
@@
static struct snd_pcm_ops txx9aclc_pcm_ops = {
.pointer = txx9aclc_pcm_pointer,
};
-static void txx9aclc_pcm_free_dma_buffers(struct snd_pcm *pcm)
-{
- snd_pcm_lib_preallocate_free_for_all(pcm);
-}
-
static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd)
{
struct snd_card *card = rtd->card->snd_card;
@@
-412,7
+407,6
@@
static struct snd_soc_platform_driver txx9aclc_soc_platform = {
.remove = txx9aclc_pcm_remove,
.ops = &txx9aclc_pcm_ops,
.pcm_new = txx9aclc_pcm_new,
- .pcm_free = txx9aclc_pcm_free_dma_buffers,
};
static int txx9aclc_soc_platform_probe(struct platform_device *pdev)