ALSA: usb-audio: Convert to the common vmalloc memalloc
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 15:18:40 +0000 (16:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:47:41 +0000 (15:47 +0100)
commitb315997d7c2295b2b32cb661a584208ab05ffaea
tree2cc9ae7b8f48797eb584c3e87f7d1944d2c3d365
parent1158e89c9d8f5e676870ab0a729de16ac39e59af
ALSA: usb-audio: Convert to the common vmalloc memalloc

The recent change (*) in the ALSA memalloc core allows us to drop the
special vmalloc-specific allocation and page handling.  This patch
coverts to the common code.
(*) 1fe7f397cfe2: ALSA: memalloc: Add vmalloc buffer allocation
                  support
    7e8edae39fd1: ALSA: pcm: Handle special page mapping in the
                  default mmap handler

Also, since the SG-buffer-specific PCM ops becomes identical with the
normal PCM ops, unify them again to the single ops, too.

Link: https://lore.kernel.org/r/20191105151856.10785-9-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c