[dvbapp] increase PR.
[vuplus_openvuplus_3.0] / meta-bsp / recipes-graphics / directfb / directfb-1.7.7 / vuplus-prevent-VT.patch
1 diff --git a/inputdrivers/linux_input/linux_input.c b/inputdrivers/linux_input/linux_input.c
2 index e275762..9e2d622 100644
3 --- a/inputdrivers/linux_input/linux_input.c
4 +++ b/inputdrivers/linux_input/linux_input.c
5 @@ -284,7 +284,11 @@ int basic_keycodes [] = {
6       /*KEY_CLOSECD, KEY_EJECTCD, KEY_EJECTCLOSECD,*/
7       DIKS_EJECT, DIKS_EJECT, DIKS_EJECT,
8  
9 +#if 0 //vuplus
10       DIKS_NEXT, DIKS_PLAYPAUSE, DIKS_PREVIOUS, DIKS_STOP, DIKS_RECORD,
11 +#else
12 +     DIKS_FASTFORWARD, DIKS_PLAYPAUSE, DIKS_REWIND, DIKS_STOP, DIKS_RECORD,
13 +#endif
14       DIKS_REWIND, DIKS_PHONE,
15  
16       /*KEY_ISO,*/ DIKI_UNKNOWN,
17 @@ -1260,6 +1264,7 @@ driver_get_available( void )
18            return 0;
19  
20       if (dfb_system_type() == CORE_FBDEV && !dfb_config->linux_input_force) {
21 +#if 0 // vuplus
22            FBDev *dfb_fbdev = (FBDev*) dfb_system_data();
23            D_ASSERT( dfb_fbdev );
24  
25 @@ -1268,6 +1273,7 @@ driver_get_available( void )
26            // FIXME:  Additional logic needed for system drivers not similar to fbdev?
27            if (!dfb_fbdev->vt || dfb_fbdev->vt->fd < 0)
28                 return 0;
29 +#endif
30       }
31  
32       /* Use the devices specified in the configuration. */
33 @@ -1480,6 +1486,7 @@ get_capability( void )
34            FBDev *dfb_fbdev = (FBDev*) dfb_system_data();
35            D_ASSERT( dfb_fbdev );
36  
37 +#if 0 // hschang
38            // Only allow USB keyboard and mouse support if the systems driver has
39            // the Virtual Terminal file ("/dev/tty0") open and available for use.
40            // FIXME:  Additional logic needed for system drivers not similar to fbdev?
41 @@ -1487,6 +1494,7 @@ get_capability( void )
42                 D_DEBUG_AT( Debug_LinuxInput, "  -> no VT\n" );
43                 goto exit;
44            }
45 +#endif
46       }
47  
48       D_DEBUG_AT( Debug_LinuxInput, "  -> returning HOTPLUG\n" );
49 @@ -1855,6 +1863,7 @@ driver_open_device( CoreInputDevice  *device,
50        /* Track associated entry in device_nums and device_names array. */
51        data->index = number;
52  
53 +#if 0 // hschang
54       if (info->desc.min_keycode >= 0 && info->desc.max_keycode >= info->desc.min_keycode) {
55            if (dfb_system_type() == CORE_FBDEV) {
56                 FBDev *dfb_fbdev = dfb_system_data();
57 @@ -1868,6 +1877,7 @@ driver_open_device( CoreInputDevice  *device,
58            if (data->vt_fd < 0)
59                 D_WARN( "no keymap support (requires /dev/tty0 - CONFIG_VT)" );
60       }
61 +#endif
62  
63       /* check if the device has LEDs */
64       ret = ioctl( fd, EVIOCGBIT(EV_LED, sizeof(ledbit)), ledbit );