Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19464
b: refs/heads/master
c: 00d340b
h: refs/heads/master
v: v3
  • Loading branch information
Manuel Lauss authored and Linus Torvalds committed Feb 1, 2006
1 parent 924f31e commit 962d388
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 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: 06c6f90032e39d33d02ab20f32e3f3cd87f58d28
refs/heads/master: 00d340b94f6df17d5dc478521e4ee1cfb30c53ac
6 changes: 3 additions & 3 deletions trunk/drivers/video/i810/i810-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ int i810_probe_i2c_connector(struct fb_info *info, u8 **out_edid, int conn)
u8 *edid = NULL;
int i;

DPRINTK("i810-i2c: Probe DDC%i Bus\n", conn);
if (conn < 4) {
DPRINTK("i810-i2c: Probe DDC%i Bus\n", conn+1);
if (conn < par->ddc_num) {
for (i = 0; i < 3; i++) {
/* Do the real work */
edid = i810_do_probe_i2c_edid(&par->chan[conn-1]);
edid = i810_do_probe_i2c_edid(&par->chan[conn]);
if (edid)
break;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/video/i810/i810.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ struct i810fb_par {
u32 blit_bpp;
u32 ovract;
u32 cur_state;
u32 ddc_num;
int mtrr_reg;
u16 bltcntl;
u8 interlace;
Expand Down
13 changes: 10 additions & 3 deletions trunk/drivers/video/i810/i810_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ static int vyres __devinitdata;
static int sync __devinitdata;
static int extvga __devinitdata;
static int dcolor __devinitdata;
static int ddc3 __devinitdata = 2;

/*------------------------------------------------------------*/

Expand Down Expand Up @@ -1763,6 +1764,8 @@ static void __devinit i810_init_defaults(struct i810fb_par *par,
if (sync)
par->dev_flags |= ALWAYS_SYNC;

par->ddc_num = ddc3;

if (bpp < 8)
bpp = 8;

Expand Down Expand Up @@ -1885,7 +1888,7 @@ static void __devinit i810fb_find_init_mode(struct fb_info *info)
int found = 0;
#ifdef CONFIG_FB_I810_I2C
int i;
int err;
int err = 1;
struct i810fb_par *par = info->par;
#endif

Expand All @@ -1895,8 +1898,8 @@ static void __devinit i810fb_find_init_mode(struct fb_info *info)
#ifdef CONFIG_FB_I810_I2C
i810_create_i2c_busses(par);

for (i = 0; i < 4; i++) {
err = i810_probe_i2c_connector(info, &par->edid, i+1);
for (i = 0; i < par->ddc_num + 1; i++) {
err = i810_probe_i2c_connector(info, &par->edid, i);
if (!err)
break;
}
Expand Down Expand Up @@ -1983,6 +1986,8 @@ static int __devinit i810fb_setup(char *options)
vsync2 = simple_strtoul(this_opt+7, NULL, 0);
else if (!strncmp(this_opt, "dcolor", 6))
dcolor = 1;
else if (!strncmp(this_opt, "ddc3", 4))
ddc3 = 3;
else
mode_option = this_opt;
}
Expand Down Expand Up @@ -2190,6 +2195,8 @@ MODULE_PARM_DESC(sync, "wait for accel engine to finish drawing"
module_param(dcolor, bool, 0);
MODULE_PARM_DESC(dcolor, "use DirectColor visuals"
" (default = 0 = TrueColor)");
module_param(ddc3, bool, 0);
MODULE_PARM_DESC(ddc3, "Probe DDC bus 3 (default = 0 = no)");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Specify initial video mode");

Expand Down

0 comments on commit 962d388

Please sign in to comment.