Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72037
b: refs/heads/master
c: 6659e3e
h: refs/heads/master
i:
  72035: c064732
v: v3
  • Loading branch information
Ian Armstrong authored and Mauro Carvalho Chehab committed Oct 22, 2007
1 parent 3f25062 commit b821b90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: 4339ab93657cce9ca0e4678053ddcb68149d48fd
refs/heads/master: 6659e3ed559db2e730947268f9d57869b7a9016c
14 changes: 3 additions & 11 deletions trunk/drivers/media/video/ivtv/ivtvfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ struct osd_info {
unsigned long fb_end_aligned_physaddr;
#endif

/* Current osd mode */
int osd_mode;

/* Store the buffer offset */
int set_osd_coords_x;
int set_osd_coords_y;
Expand Down Expand Up @@ -470,13 +467,11 @@ static int ivtvfb_set_var(struct ivtv *itv, struct fb_var_screeninfo *var)
IVTVFB_DEBUG_WARN("ivtvfb_set_var - Invalid bpp\n");
}

/* Change osd mode if needed.
Although rare, things can go wrong. The extra mode
change seems to help... */
if (osd_mode != -1 && osd_mode != oi->osd_mode) {
/* Set video mode. Although rare, the display can become scrambled even
if we don't change mode. Always 'bounce' to osd_mode via mode 0 */
if (osd_mode != -1) {
ivtv_vapi(itv, CX2341X_OSD_SET_PIXEL_FORMAT, 1, 0);
ivtv_vapi(itv, CX2341X_OSD_SET_PIXEL_FORMAT, 1, osd_mode);
oi->osd_mode = osd_mode;
}

oi->bits_per_pixel = var->bits_per_pixel;
Expand Down Expand Up @@ -882,9 +877,6 @@ static int ivtvfb_init_vidmode(struct ivtv *itv)
oi->bits_per_pixel = osd_depth;
oi->bytes_per_pixel = oi->bits_per_pixel / 8;

/* Invalidate current osd mode to force a mode switch later */
oi->osd_mode = -1;

/* Horizontal size & position */

if (osd_xres > 720) osd_xres = 720;
Expand Down

0 comments on commit b821b90

Please sign in to comment.