added dmesg output in omap3isp,and found the error position: 
In preview_get_crop() of /drivers/media/video/omap3isp/isppreview.c, the 
input parameter “pad” is PREV_PAD_SOURCE, cause this error…

static int preview_get_crop(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
                struct v4l2_subdev_crop *crop){
    struct isp_prev_device *prev = v4l2_get_subdevdata(sd);

    /* By dmesg , crop->pad = PREV_PAD_SOURCE.It causes error exit.*/
    if (crop->pad != PREV_PAD_SINK)         
    {
        pr_err("preview_get_crop(),crop->pad(%d)!=PREV_PAD_SINK\n",crop->pad);
        return -EINVAL;
    }

    crop->rect = *__preview_get_crop(prev, fh, crop->which);
    return 0;}

dmesg output:

[   23.329053] omap3isp omap3isp: isp_set_xclk(): cam_xclkb set to 21600000 Hz[ 
  31.368248] preview_get_crop(),crop->pad(1)!=PREV_PAD_SINK[   31.388851] 
omap3isp omap3isp: isp_set_xclk(): cam_xclkb set to 21600000 Hz

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to