media: imx: Fix VDIC CSI1 selection
PATCH 1/1 media: imx: Fix VDIC CSI1 selection
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 <[email protected]>
Signed-off-by Tim Harvey <[email protected]>
--- drivers/staging/media/imx/imx-ic-prp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/media/imx/imx-ic-prp.c +3 -2
@@ -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) {
Signature · 1 line
2.7.4
Thanks Tim for catching this error.
Acked-by Steve Longerbeam <[email protected]>
Quoted 27 lines · Tim Harvey
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 <[email protected]>Signed-off-by Tim Harvey <[email protected]>--- drivers/staging/media/imx/imx-ic-prp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/staging/media/imx/imx-ic-prp.c +3
-2@@ -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) {