diff options
Diffstat (limited to 'drivers/media/video/omap3isp/ispccdc.c')
-rw-r--r-- | drivers/media/video/omap3isp/ispccdc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c index 39d501bda636..9d3459de04b2 100644 --- a/drivers/media/video/omap3isp/ispccdc.c +++ b/drivers/media/video/omap3isp/ispccdc.c | |||
@@ -1148,6 +1148,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) | |||
1148 | omap3isp_configure_bridge(isp, ccdc->input, pdata, shift); | 1148 | omap3isp_configure_bridge(isp, ccdc->input, pdata, shift); |
1149 | 1149 | ||
1150 | ccdc->syncif.datsz = depth_out; | 1150 | ccdc->syncif.datsz = depth_out; |
1151 | ccdc->syncif.hdpol = pdata ? pdata->hs_pol : 0; | ||
1152 | ccdc->syncif.vdpol = pdata ? pdata->vs_pol : 0; | ||
1151 | ccdc_config_sync_if(ccdc, &ccdc->syncif); | 1153 | ccdc_config_sync_if(ccdc, &ccdc->syncif); |
1152 | 1154 | ||
1153 | /* CCDC_PAD_SINK */ | 1155 | /* CCDC_PAD_SINK */ |
@@ -1691,7 +1693,7 @@ static int ccdc_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, | |||
1691 | if (sub->type != V4L2_EVENT_OMAP3ISP_HS_VS) | 1693 | if (sub->type != V4L2_EVENT_OMAP3ISP_HS_VS) |
1692 | return -EINVAL; | 1694 | return -EINVAL; |
1693 | 1695 | ||
1694 | return v4l2_event_subscribe(fh, sub); | 1696 | return v4l2_event_subscribe(fh, sub, OMAP3ISP_CCDC_NEVENTS); |
1695 | } | 1697 | } |
1696 | 1698 | ||
1697 | static int ccdc_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, | 1699 | static int ccdc_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, |
@@ -2162,7 +2164,6 @@ static int ccdc_init_entities(struct isp_ccdc_device *ccdc) | |||
2162 | sd->grp_id = 1 << 16; /* group ID for isp subdevs */ | 2164 | sd->grp_id = 1 << 16; /* group ID for isp subdevs */ |
2163 | v4l2_set_subdevdata(sd, ccdc); | 2165 | v4l2_set_subdevdata(sd, ccdc); |
2164 | sd->flags |= V4L2_SUBDEV_FL_HAS_EVENTS | V4L2_SUBDEV_FL_HAS_DEVNODE; | 2166 | sd->flags |= V4L2_SUBDEV_FL_HAS_EVENTS | V4L2_SUBDEV_FL_HAS_DEVNODE; |
2165 | sd->nevents = OMAP3ISP_CCDC_NEVENTS; | ||
2166 | 2167 | ||
2167 | pads[CCDC_PAD_SINK].flags = MEDIA_PAD_FL_SINK; | 2168 | pads[CCDC_PAD_SINK].flags = MEDIA_PAD_FL_SINK; |
2168 | pads[CCDC_PAD_SOURCE_VP].flags = MEDIA_PAD_FL_SOURCE; | 2169 | pads[CCDC_PAD_SOURCE_VP].flags = MEDIA_PAD_FL_SOURCE; |
@@ -2257,8 +2258,6 @@ int omap3isp_ccdc_init(struct isp_device *isp) | |||
2257 | ccdc->syncif.fldout = 0; | 2258 | ccdc->syncif.fldout = 0; |
2258 | ccdc->syncif.fldpol = 0; | 2259 | ccdc->syncif.fldpol = 0; |
2259 | ccdc->syncif.fldstat = 0; | 2260 | ccdc->syncif.fldstat = 0; |
2260 | ccdc->syncif.hdpol = 0; | ||
2261 | ccdc->syncif.vdpol = 0; | ||
2262 | 2261 | ||
2263 | ccdc->clamp.oblen = 0; | 2262 | ccdc->clamp.oblen = 0; |
2264 | ccdc->clamp.dcsubval = 0; | 2263 | ccdc->clamp.dcsubval = 0; |