mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 05:31:17 -04:00
media: coda: disable encoder compose selections
Disable capture side compose selections for the encoder. This fixes the following v4l2-compliance complaint: fail: v4l2-test-formats.cpp(1662): IS_ENCODER(node) test Composing: FAIL Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
3192b2ca79
commit
ff1c21f4cf
@@ -942,7 +942,8 @@ static int coda_g_selection(struct file *file, void *fh,
|
||||
/* fallthrough */
|
||||
case V4L2_SEL_TGT_COMPOSE:
|
||||
case V4L2_SEL_TGT_COMPOSE_DEFAULT:
|
||||
if (s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||
if (s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
|
||||
ctx->inst_type == CODA_INST_ENCODER)
|
||||
return -EINVAL;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user