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

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
......@@ -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;
goto out;
}
} else {
/* the source is a CSI */
if (!csi) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment