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)
commitc9cbf021c82c3fa5b0beaa7d6e7f3f5706aeabfa
treef3f58c9e9c00d585477dccfddf3ac60a269f6b96
parent2d8b2a6431b38f4cb4046636117940b0cb0b3ecf
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