Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200001
b: refs/heads/master
c: 5f39b9f
h: refs/heads/master
i:
  199999: a3d9855
v: v3
  • Loading branch information
Ian Armstrong authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 35a6c0e commit 4a17304
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 064a2485aa45956cf1e8520e716839e9d7555b90
refs/heads/master: 5f39b9f660778c3b095fc380da178d58a040add5
14 changes: 11 additions & 3 deletions trunk/drivers/media/video/ivtv/ivtvfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,11 @@ static int ivtvfb_init_io(struct ivtv *itv)
}
mutex_unlock(&itv->serialize_lock);

ivtvfb_get_framebuffer(itv, &oi->video_rbase, &oi->video_buffer_size);
if (ivtvfb_get_framebuffer(itv, &oi->video_rbase,
&oi->video_buffer_size) < 0) {
IVTVFB_ERR("Firmware failed to respond\n");
return -EIO;
}

/* The osd buffer size depends on the number of video buffers allocated
on the PVR350 itself. For now we'll hardcode the smallest osd buffer
Expand Down Expand Up @@ -1158,8 +1162,11 @@ static int ivtvfb_init_card(struct ivtv *itv)
}

/* Find & setup the OSD buffer */
if ((rc = ivtvfb_init_io(itv)))
rc = ivtvfb_init_io(itv);
if (rc) {
ivtvfb_release_buffers(itv);
return rc;
}

/* Set the startup video mode information */
if ((rc = ivtvfb_init_vidmode(itv))) {
Expand Down Expand Up @@ -1210,6 +1217,7 @@ static int ivtvfb_callback_cleanup(struct device *dev, void *p)
{
struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev);
struct osd_info *oi = itv->osd_info;

if (itv && (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) {
if (unregister_framebuffer(&itv->osd_info->ivtvfb_info)) {
Expand All @@ -1218,7 +1226,7 @@ static int ivtvfb_callback_cleanup(struct device *dev, void *p)
return 0;
}
IVTVFB_INFO("Unregister framebuffer %d\n", itv->instance);
ivtvfb_blank(FB_BLANK_POWERDOWN, &itv->osd_info->ivtvfb_info);
ivtvfb_blank(FB_BLANK_VSYNC_SUSPEND, &oi->ivtvfb_info);
ivtvfb_release_buffers(itv);
itv->osd_video_pbase = 0;
}
Expand Down

0 comments on commit 4a17304

Please sign in to comment.