mirror of
https://github.com/Fishwaldo/build.git
synced 2025-04-01 11:41:42 +00:00
Use soft cursor with disp2
This commit is contained in:
parent
de89c8a7a1
commit
6ed9fac60d
2 changed files with 26 additions and 0 deletions
13
patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch
Normal file
13
patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/drivers/video/sunxi/disp2/disp/dev_fb.c b/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
index cc297aa..b57fa0c 100755
|
||||||
|
--- a/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
+++ b/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
@@ -682,7 +682,7 @@ static int sunxi_fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
|
||||||
|
{
|
||||||
|
__inf("sunxi_fb_cursor\n");
|
||||||
|
|
||||||
|
- return 0;
|
||||||
|
+ return -EINVAL; /* just to force soft_cursor() call */
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 drv_disp_vsync_event(u32 sel)
|
13
patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch
Normal file
13
patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/drivers/video/sunxi/disp2/disp/dev_fb.c b/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
index cc297aa..b57fa0c 100755
|
||||||
|
--- a/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
+++ b/drivers/video/sunxi/disp2/disp/dev_fb.c
|
||||||
|
@@ -682,7 +682,7 @@ static int sunxi_fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
|
||||||
|
{
|
||||||
|
__inf("sunxi_fb_cursor\n");
|
||||||
|
|
||||||
|
- return 0;
|
||||||
|
+ return -EINVAL; /* just to force soft_cursor() call */
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 drv_disp_vsync_event(u32 sel)
|
Loading…
Add table
Reference in a new issue