]> git.baikalelectronics.ru Git - kernel.git/commit
media: vivid: use vb2_queue_change_type
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 12 Apr 2021 11:02:11 +0000 (13:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 10:06:55 +0000 (12:06 +0200)
commit07fdfe959e584ba574fda1166f2f61f6bb6eff27
treef3f58c9e9c00d585477dccfddf3ac60a269f6b96
parente30d62bf86051f4ff8b09c44c7239ddcf960bdc7
media: vivid: use vb2_queue_change_type

Use the new vb2_queue_change_type() function in .vidioc_reqbufs and
.vidioc_create_bufs instead of changing the queue type manually in
vidioc_s_fmt_vbi_cap() and vidioc_s_fmt_sliced_vbi_cap().

This allows for a more consistent behavior, as .vidioc_reqbufs and
.vidioc_create_bufs are when the queue will become "busy".

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vivid/vivid-core.c
drivers/media/test-drivers/vivid/vivid-vbi-cap.c