diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 13:56:13 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 22:30:20 +0100 |
commit | 691384503426f97f647e98eed85410eae71c2754 (patch) | |
tree | 17a8978c71bfec50f8758d7018c2770a0fdafece /sound/soc/txx9 | |
parent | Linux 3.19-rc1 (diff) | |
download | linux-691384503426f97f647e98eed85410eae71c2754.tar.xz linux-691384503426f97f647e98eed85410eae71c2754.zip |
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')
-rw-r--r-- | sound/soc/txx9/txx9aclc.c | 6 |
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 = { .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) |