diff options
Diffstat (limited to 'recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch')
-rw-r--r-- | recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch b/recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch new file mode 100644 index 00000000..91c1dd15 --- /dev/null +++ b/recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch | |||
@@ -0,0 +1,77 @@ | |||
1 | Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display_fbdev.c | ||
2 | =================================================================== | ||
3 | --- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Display_fbdev.c 2009-02-11 19:59:57.000000000 -0600 | ||
4 | +++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display_fbdev.c 2009-02-11 20:02:46.000000000 -0600 | ||
5 | @@ -41,10 +41,7 @@ | ||
6 | #include <sys/ioctl.h> | ||
7 | #include <linux/fb.h> | ||
8 | |||
9 | -#ifdef Dmai_Device_omap3530 | ||
10 | -/* OMAP specific kernel headers */ | ||
11 | -#include <video/omapfbdev.h> | ||
12 | -#else | ||
13 | +#ifndef Dmai_Device_omap3530 | ||
14 | /* Davinci specific kernel headers */ | ||
15 | #include <video/davincifb_ioctl.h> | ||
16 | #endif | ||
17 | @@ -184,11 +181,13 @@ | ||
18 | } | ||
19 | #endif | ||
20 | |||
21 | +#if 0 | ||
22 | /* Set up the sysfs variables before opening the display device */ | ||
23 | if (_Display_sysfsSetup(attrs, channel) < 0) { | ||
24 | cleanup(hDisplay); | ||
25 | return NULL; | ||
26 | } | ||
27 | +#endif | ||
28 | |||
29 | /* Open video display device */ | ||
30 | hDisplay->fd = open(attrs->displayDevice, O_RDWR); | ||
31 | @@ -423,6 +422,7 @@ | ||
32 | ******************************************************************************/ | ||
33 | Int Display_fbdev_get(Display_Handle hDisplay, Buffer_Handle *hBufPtr) | ||
34 | { | ||
35 | +#if defined (FBIO_WAITFORVSYNC) | ||
36 | BufTab_Handle hBufTab = hDisplay->hBufTab; | ||
37 | int dummy; | ||
38 | |||
39 | @@ -436,7 +436,8 @@ | ||
40 | } | ||
41 | |||
42 | *hBufPtr = BufTab_getBuf(hBufTab, hDisplay->workingIdx); | ||
43 | - | ||
44 | + | ||
45 | +#endif | ||
46 | return Dmai_EOK; | ||
47 | } | ||
48 | |||
49 | Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display.c | ||
50 | =================================================================== | ||
51 | --- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Display.c 2009-02-11 20:00:10.000000000 -0600 | ||
52 | +++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display.c 2009-02-11 20:02:07.000000000 -0600 | ||
53 | @@ -80,18 +80,18 @@ | ||
54 | |||
55 | const Display_Attrs Display_Attrs_O3530_VID_DEFAULT = { | ||
56 | 3, | ||
57 | - Display_Std_V4L2, | ||
58 | - VideoStd_VGA, | ||
59 | - Display_Output_LCD, | ||
60 | - "/dev/video1", | ||
61 | + Display_Std_FBDEV, | ||
62 | + VideoStd_D1_NTSC, | ||
63 | + Display_Output_DVI, | ||
64 | + "/dev/fb2", | ||
65 | 0 | ||
66 | }; | ||
67 | |||
68 | const Display_Attrs Display_Attrs_O3530_OSD_DEFAULT = { | ||
69 | 1, | ||
70 | Display_Std_FBDEV, | ||
71 | - VideoStd_VGA, | ||
72 | - Display_Output_LCD, | ||
73 | + VideoStd_D1_NTSC, | ||
74 | + Display_Output_DVI, | ||
75 | "/dev/fb0", | ||
76 | 0 | ||
77 | }; | ||