]> asedeno.scripts.mit.edu Git - linux.git/commit
media: em28xx: Clean up ALSA PCM API usages
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Dec 2019 13:58:43 +0000 (14:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 13 Dec 2019 08:33:04 +0000 (09:33 +0100)
commit2abb1b2daf88eeace02f798424d96535c990352f
tree16d41176c556598145caa7fc68e7989e095cee82
parent355b9a0c5856695e2335935a8c94fcb17b3b6dbb
media: em28xx: Clean up ALSA PCM API usages

With the recent change in ALSA PCM core, the whole open-coded vmalloc
buffer handling in this driver can be dropped by replacing with the
managed buffer allocation.

Also, snd_em28xx_hw_capture_free() is dropped since the check of
stream_started flag makes no sense; hw_free callback is guaranteed to
be called after the stream gets stopped.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/em28xx/em28xx-audio.c