Skip to content

Commit

Permalink
nvidiafb: Fix reversed DDC port
Browse files Browse the repository at this point in the history
After I added some debugging printks I've found that code became a bit
confused because it believed that primary monitor is 1920x540, but later it
found in CRTC0's registers that panel size is 1920x1200 (Windows also agree
that 1920x1200 is primary monitor, and 1920x1080i secondary one).

When I applied attached patch then my monitor became as happy as it was
before I connected HDMI cable to secondary output.

Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Petr Vandrovec authored and Linus Torvalds committed May 8, 2007
1 parent dd14471 commit 2707cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/nvidia/nv_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ void nvidia_create_i2c_busses(struct nvidia_par *par)
par->chan[1].par = par;
par->chan[2].par = par;

par->chan[0].ddc_base = 0x3e;
par->chan[0].ddc_base = 0x36;
nvidia_setup_i2c_bus(&par->chan[0], "nvidia #0");

par->chan[1].ddc_base = 0x36;
par->chan[1].ddc_base = 0x3e;
nvidia_setup_i2c_bus(&par->chan[1], "nvidia #1");

par->chan[2].ddc_base = 0x50;
Expand Down

0 comments on commit 2707cd0

Please sign in to comment.