]> asedeno.scripts.mit.edu Git - linux.git/commit
media: cs231xx: Clean up ALSA PCM API usages
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Dec 2019 13:58:42 +0000 (14:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 13 Dec 2019 08:33:02 +0000 (09:33 +0100)
commit355b9a0c5856695e2335935a8c94fcb17b3b6dbb
tree683f7b2310d2dc69e1d929089dc49ffff8085fc7
parent7ffeb6ceda5e7da48e7838c3d105d68b643c65ef
media: cs231xx: 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_cx231xx_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/cx231xx/cx231xx-audio.c