Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: cedrus: set requires_requests

The cedrus stateless decoder requires the use of request, so
indicate this by setting requires_requests to 1.

Note that the cedrus driver never checked for this, and as far
as I can tell would just crash if an attempt was made to queue
a buffer without a request.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
ca0d1bd4 90675d39

+1
+1
drivers/staging/media/sunxi/cedrus/cedrus_video.c
··· 536 536 src_vq->lock = &ctx->dev->dev_mutex; 537 537 src_vq->dev = ctx->dev->dev; 538 538 src_vq->supports_requests = true; 539 + src_vq->requires_requests = true; 539 540 540 541 ret = vb2_queue_init(src_vq); 541 542 if (ret)