]> www.infradead.org Git - users/hch/block.git/commit
media: tm6000: Clean up ALSA PCM API usages
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Dec 2019 13:58:45 +0000 (14:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 13 Dec 2019 08:33:08 +0000 (09:33 +0100)
commitf8239b531f0d2e93c211ad6528e36f9294f43bbe
tree9bd3f8c3f7f2e9f331e3cd01e739b19b6a89c4a6
parent2d19a2cd804b8cc934142473b6a170259c8de058
media: tm6000: 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_tm6000_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/tm6000/tm6000-alsa.c