Skip to content

Commit e14cc65

Browse files
pinchartlgregkh
authored andcommitted
media: imx: capture: Return -EPIPE from __capture_legacy_try_fmt()
[ Upstream commit cc271b6 ] The correct return code to report an invalid pipeline configuration is -EPIPE. Return it instead of -EINVAL from __capture_legacy_try_fmt() when the capture format doesn't match the media bus format of the connected subdev. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d19f1f5 commit e14cc65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/media/imx/imx-media-capture.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static int capture_validate_fmt(struct capture_priv *priv)
557557
priv->vdev.fmt.fmt.pix.height != f.fmt.pix.height ||
558558
priv->vdev.cc->cs != cc->cs ||
559559
priv->vdev.compose.width != compose.width ||
560-
priv->vdev.compose.height != compose.height) ? -EINVAL : 0;
560+
priv->vdev.compose.height != compose.height) ? -EPIPE : 0;
561561
}
562562

563563
static int capture_start_streaming(struct vb2_queue *vq, unsigned int count)

0 commit comments

Comments
 (0)