@@ -448,6 +448,10 @@ static int try_pix_parm(struct omap34xxcam_videodev *vdev,
break;
dev_dbg(&vdev->vfd->dev, "trying fmt %8.8x (%d)\n",
fmtd.pixelformat, fmtd_index);
+
+ if (fmtd.pixelformat != best_pix_in->pixelformat)
+ continue;
+
/*
* Get supported resolutions.
*/
@@ -470,7 +474,7 @@ static int try_pix_parm(struct omap34xxcam_videodev *vdev,
pix_tmp_out = *wanted_pix_out;
rval = isp_try_fmt_cap(isp, &pix_tmp_in, &pix_tmp_out);
if (rval)
- return rval;
+ continue;
dev_dbg(&vdev->vfd->dev, "this w %d\th %d\tfmt %8.8x\t"