Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9cc48f1 authored by Tim Harvey's avatar Tim Harvey Committed by Mauro Carvalho Chehab
Browse files

media: imx: Fix VDIC CSI1 selection



When using VDIC with CSI1, make sure to select the correct CSI in
IPU_CONF.

Fixes: f0d9c892 ("[media] media: imx: Add IC subdev drivers")

Suggested-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
Acked-by: default avatarSteve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 7996e5c4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -320,9 +320,10 @@ static int prp_link_validate(struct v4l2_subdev *sd,
		 * the ->PRPENC link cannot be enabled if the source
		 * is the VDIC
		 */
		if (priv->sink_sd_prpenc)
		if (priv->sink_sd_prpenc) {
			ret = -EINVAL;
			goto out;
		}
	} else {
		/* the source is a CSI */
		if (!csi) {