Skip to content

Commit 0465f79

Browse files
Geert UytterhoevenLinus Torvalds
authored andcommitted
[PATCH] ps3: disable display flipping during mode changes
If ps3fb is available, we have to disable display flipping while changing the audio or video mode. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: James Simmons <jsimmons@infradead.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 310d8c1 commit 0465f79

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

‎drivers/ps3/ps3av_cmd.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/kernel.h>
2323
#include <linux/delay.h>
2424
#include <asm/ps3av.h>
25+
#include <asm/ps3fb.h>
2526
#include <asm/ps3.h>
2627

2728
#include "vuart.h"
@@ -851,8 +852,9 @@ int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len)
851852
{
852853
int res;
853854

854-
/* avb packet */
855+
ps3fb_flip_ctl(0); /* flip off */
855856

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

866868
out:
869+
ps3fb_flip_ctl(1); /* flip on */
867870
return res;
868871
}
869872

‎include/asm-powerpc/ps3fb.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ struct ps3fb_ioctl_res {
4141
__u32 num_frames; /* num of frame buffers */
4242
};
4343

44+
#ifdef __KERNEL__
45+
46+
#ifdef CONFIG_FB_PS3
47+
extern void ps3fb_flip_ctl(int on);
48+
#else
49+
static inline void ps3fb_flip_ctl(int on) {}
50+
#endif
51+
52+
#endif /* __KERNEL__ */
53+
4454
#endif /* _ASM_POWERPC_PS3FB_H_ */

0 commit comments

Comments
 (0)