mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
97bf6af1f9
commit
6913845034
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue