diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-07-23 22:09:15 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-23 17:40:37 +0100 |
commit | 36e914cc4bb5d1842e7c8a2e2b9b4f2935771c14 (patch) | |
tree | fa240045893d94877b4ab1ee1e7e5387dbe56532 /sound/soc | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) | |
download | blackbird-obmc-linux-36e914cc4bb5d1842e7c8a2e2b9b4f2935771c14.tar.gz blackbird-obmc-linux-36e914cc4bb5d1842e7c8a2e2b9b4f2935771c14.zip |
ASoC: xtensa: 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: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/xtensa/xtfpga-i2s.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c index 1cfb19e12949..039f65e36fa8 100644 --- a/sound/soc/xtensa/xtfpga-i2s.c +++ b/sound/soc/xtensa/xtfpga-i2s.c @@ -474,11 +474,6 @@ static int xtfpga_pcm_new(struct snd_soc_pcm_runtime *rtd) card->dev, size, size); } -static void xtfpga_pcm_free(struct snd_pcm *pcm) -{ - snd_pcm_lib_preallocate_free_for_all(pcm); -} - static const struct snd_pcm_ops xtfpga_pcm_ops = { .open = xtfpga_pcm_open, .close = xtfpga_pcm_close, @@ -490,7 +485,6 @@ static const struct snd_pcm_ops xtfpga_pcm_ops = { static const struct snd_soc_platform_driver xtfpga_soc_platform = { .pcm_new = xtfpga_pcm_new, - .pcm_free = xtfpga_pcm_free, .ops = &xtfpga_pcm_ops, }; |