]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate: Refactoring temporary buffer allocations
authorTakashi Iwai <tiwai@suse.de>
Thu, 17 Jun 2021 08:20:25 +0000 (10:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Jun 2021 08:20:25 +0000 (10:20 +0200)
commit5089358aa99d698bd846b05c1890a09613d740b3
treeb953e58a4cb2c35732172d8fe062e3e1048254f6
parent81e7923fbfad45b2f353a4d6e3053af51f5f7d0b
pcm: rate: Refactoring temporary buffer allocations

Introduce common helpers to allocate and release the temporary buffers
and the associated snd_pcm_channel.  Now two allocated objects are
used instead of one malloc to be split.

Also, change the snd_pcm_channel set up to be in interleaved mode.
This will be necessary in the following change in the rate plugin.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_rate.c