OSDN Git Service

media: imx: Fix VDIC CSI1 selection
authorTim Harvey <tharvey@gateworks.com>
Mon, 18 Sep 2017 23:08:16 +0000 (01:08 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 12:14:43 +0000 (14:14 +0200)
When using VDIC with CSI1, make sure to select the correct CSI in
IPU_CONF.

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

Suggested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/imx/imx-ic-prp.c

index c2bb5ef..9e41987 100644 (file)
@@ -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) {