aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/txx9/txx9aclc.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 07:56:13 -0500
committerMark Brown <broonie@kernel.org>2015-01-05 16:30:20 -0500
commit691384503426f97f647e98eed85410eae71c2754 (patch)
tree17a8978c71bfec50f8758d7018c2770a0fdafece /sound/soc/txx9/txx9aclc.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
ASoC: txx9: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
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>
Diffstat (limited to 'sound/soc/txx9/txx9aclc.c')
-rw-r--r--sound/soc/txx9/txx9aclc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c
index 070e44e251ce..88eacfd83da6 100644
--- a/sound/soc/txx9/txx9aclc.c
+++ b/sound/soc/txx9/txx9aclc.c
@@ -282,11 +282,6 @@ static struct snd_pcm_ops txx9aclc_pcm_ops = {
282 .pointer = txx9aclc_pcm_pointer, 282 .pointer = txx9aclc_pcm_pointer,
283}; 283};
284 284
285static void txx9aclc_pcm_free_dma_buffers(struct snd_pcm *pcm)
286{
287 snd_pcm_lib_preallocate_free_for_all(pcm);
288}
289
290static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd) 285static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd)
291{ 286{
292 struct snd_card *card = rtd->card->snd_card; 287 struct snd_card *card = rtd->card->snd_card;
@@ -412,7 +407,6 @@ static struct snd_soc_platform_driver txx9aclc_soc_platform = {
412 .remove = txx9aclc_pcm_remove, 407 .remove = txx9aclc_pcm_remove,
413 .ops = &txx9aclc_pcm_ops, 408 .ops = &txx9aclc_pcm_ops,
414 .pcm_new = txx9aclc_pcm_new, 409 .pcm_new = txx9aclc_pcm_new,
415 .pcm_free = txx9aclc_pcm_free_dma_buffers,
416}; 410};
417 411
418static int txx9aclc_soc_platform_probe(struct platform_device *pdev) 412static int txx9aclc_soc_platform_probe(struct platform_device *pdev)