Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53310
b: refs/heads/master
c: 6407290
h: refs/heads/master
v: v3
  • Loading branch information
Masashi Kimoto authored and Linus Torvalds committed May 5, 2007
1 parent 8d26f7e commit 27d3f72
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fffe52e86b4ad5f8bdcb284c4ea6c87402967f3d
refs/heads/master: 640729014e073e6e2de1f513b2856b81aa7d84e9
7 changes: 7 additions & 0 deletions trunk/drivers/ps3/ps3av.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,13 @@ int ps3av_set_video_mode(u32 id, int boot)

EXPORT_SYMBOL_GPL(ps3av_set_video_mode);

int ps3av_get_auto_mode(int boot)
{
return ps3av_auto_videomode(&ps3av.av_hw_conf, boot);
}

EXPORT_SYMBOL_GPL(ps3av_get_auto_mode);

int ps3av_set_mode(u32 id, int boot)
{
int res;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,11 @@ static int ps3fb_ioctl(struct fb_info *info, unsigned int cmd,
if (copy_from_user(&val, argp, sizeof(val)))
break;

if (!(val & PS3AV_MODE_MASK)) {
u32 id = ps3av_get_auto_mode(0);
if (id > 0)
val = (val & ~PS3AV_MODE_MASK) | id;
}
DPRINTK("PS3FB_IOCTL_SETMODE:%x\n", val);
retval = -EINVAL;
old_mode = ps3fb_mode;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-powerpc/ps3av.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ extern int ps3av_vuart_read(struct ps3_vuart_port_device *dev, void *buf,

extern int ps3av_set_video_mode(u32, int);
extern int ps3av_set_audio_mode(u32, u32, u32, u32, u32);
extern int ps3av_get_auto_mode(int);
extern int ps3av_set_mode(u32, int);
extern int ps3av_get_mode(void);
extern int ps3av_get_scanmode(int);
Expand Down

0 comments on commit 27d3f72

Please sign in to comment.