Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83573
b: refs/heads/master
c: bbcfe34
h: refs/heads/master
i:
  83571: e653f0d
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Feb 6, 2008
1 parent 5b5c725 commit af73fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 084ffff29844a4bce69999d67809e6c00309ba58
refs/heads/master: bbcfe34078f3a0e690d1b54036dc9e6006129d9f
8 changes: 3 additions & 5 deletions trunk/drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
#define GPU_ALIGN_UP(x) _ALIGN_UP((x), 64)
#define GPU_MAX_LINE_LENGTH (65536 - 64)

#define PS3FB_FULL_MODE_BIT 0x80

#define GPU_INTR_STATUS_VSYNC_0 0 /* vsync on head A */
#define GPU_INTR_STATUS_VSYNC_1 1 /* vsync on head B */
#define GPU_INTR_STATUS_FLIP_0 3 /* flip head A */
Expand Down Expand Up @@ -310,7 +308,7 @@ static int ps3fb_get_res_table(u32 xres, u32 yres, int mode)
unsigned int i;
u32 x, y, f;

full_mode = (mode & PS3FB_FULL_MODE_BIT) ? PS3FB_RES_FULL : 0;
full_mode = (mode & PS3AV_MODE_FULL) ? PS3FB_RES_FULL : 0;
for (i = 0;; i++) {
x = ps3fb_res[i].xres;
y = ps3fb_res[i].yres;
Expand Down Expand Up @@ -373,7 +371,7 @@ static unsigned int ps3fb_find_mode(const struct fb_var_screeninfo *var,
/* Full broadcast modes have the full mode bit set */
mode = i+1;
if (mode > PS3AV_MODE_WUXGA)
mode = (mode - PS3AV_MODE_WUXGA) | PS3FB_FULL_MODE_BIT;
mode = (mode - PS3AV_MODE_WUXGA) | PS3AV_MODE_FULL;

pr_debug("ps3fb_find_mode: mode %u\n", mode);

Expand All @@ -390,7 +388,7 @@ static const struct fb_videomode *ps3fb_default_mode(int id)

flags = id & ~PS3AV_MODE_MASK;

if (mode <= PS3AV_MODE_1080P50 && flags & PS3FB_FULL_MODE_BIT) {
if (mode <= PS3AV_MODE_1080P50 && flags & PS3AV_MODE_FULL) {
/* Full broadcast mode */
return &ps3fb_modedb[mode + PS3AV_MODE_WUXGA - 1];
}
Expand Down

0 comments on commit af73fdb

Please sign in to comment.