OSDN Git Service

ALSA: emu10k1: Use managed buffer allocation
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Dec 2019 09:49:08 +0000 (10:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Dec 2019 06:25:10 +0000 (07:25 +0100)
commitcbf7dcd949d7ff820232d67fff314fb556718870
treef345b84a3af5042c966668c786c7ff92001b81a9
parent63832bd951d2c1deed3ea2dd5a74604902a1a0d1
ALSA: emu10k1: Use managed buffer allocation

Clean up the driver with the new managed buffer allocation API.
The normal playback streams need a workaround for the aligned buffer,
and cannot apply the straight snd_pcm_lib_malloc() stuff, so they
remain untouched, while other streams are converted to the new managed
mode.

Most of hw_params and hw_free callbacks became superfluous and got
dropped.

Link: https://lore.kernel.org/r/20191209094943.14984-37-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emupcm.c
sound/pci/emu10k1/p16v.c