Skip to content

Commit

Permalink
[PATCH] ps3: disable display flipping during mode changes
Browse files Browse the repository at this point in the history
If ps3fb is available, we have to disable display flipping while changing the
audio or video mode.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: James Simmons <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Feb 12, 2007
1 parent 310d8c1 commit 0465f79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/ps3/ps3av_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/kernel.h>
#include <linux/delay.h>
#include <asm/ps3av.h>
#include <asm/ps3fb.h>
#include <asm/ps3.h>

#include "vuart.h"
Expand Down Expand Up @@ -851,8 +852,9 @@ int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len)
{
int res;

/* avb packet */
ps3fb_flip_ctl(0); /* flip off */

/* avb packet */
res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb),
&avb->send_hdr);
if (res < 0)
Expand All @@ -864,6 +866,7 @@ int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len)
res);

out:
ps3fb_flip_ctl(1); /* flip on */
return res;
}

Expand Down
10 changes: 10 additions & 0 deletions include/asm-powerpc/ps3fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ struct ps3fb_ioctl_res {
__u32 num_frames; /* num of frame buffers */
};

#ifdef __KERNEL__

#ifdef CONFIG_FB_PS3
extern void ps3fb_flip_ctl(int on);
#else
static inline void ps3fb_flip_ctl(int on) {}
#endif

#endif /* __KERNEL__ */

#endif /* _ASM_POWERPC_PS3FB_H_ */

0 comments on commit 0465f79

Please sign in to comment.