diff mbox

omap34xxcam question?

Message ID 4B55EC3A.3060308@panicking.kicks-ass.org (mailing list archive)
State RFC
Headers show

Commit Message

michael Jan. 19, 2010, 5:30 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/omap34xxcam.c b/drivers/media/video/omap34xxcam
index 53b587e..75bd858 100644
--- a/drivers/media/video/omap34xxcam.c
+++ b/drivers/media/video/omap34xxcam.c
@@ -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"