~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/media/rc/keymaps/rc-rc5-tv.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* rc5-tv.h - Keytable for rc5_tv Remote Controller
2
 
 *
3
 
 * keymap imported from ir-keymaps.c
4
 
 *
5
 
 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
10
 
 * (at your option) any later version.
11
 
 */
12
 
 
13
 
#include <media/rc-map.h>
14
 
 
15
 
/* generic RC5 keytable                                          */
16
 
/* see http://users.pandora.be/nenya/electronics/rc5/codes00.htm */
17
 
/* used by old (black) Hauppauge remotes                         */
18
 
 
19
 
static struct rc_map_table rc5_tv[] = {
20
 
        /* Keys 0 to 9 */
21
 
        { 0x00, KEY_0 },
22
 
        { 0x01, KEY_1 },
23
 
        { 0x02, KEY_2 },
24
 
        { 0x03, KEY_3 },
25
 
        { 0x04, KEY_4 },
26
 
        { 0x05, KEY_5 },
27
 
        { 0x06, KEY_6 },
28
 
        { 0x07, KEY_7 },
29
 
        { 0x08, KEY_8 },
30
 
        { 0x09, KEY_9 },
31
 
 
32
 
        { 0x0b, KEY_CHANNEL },          /* channel / program (japan: 11) */
33
 
        { 0x0c, KEY_POWER },            /* standby */
34
 
        { 0x0d, KEY_MUTE },             /* mute / demute */
35
 
        { 0x0f, KEY_TV },               /* display */
36
 
        { 0x10, KEY_VOLUMEUP },
37
 
        { 0x11, KEY_VOLUMEDOWN },
38
 
        { 0x12, KEY_BRIGHTNESSUP },
39
 
        { 0x13, KEY_BRIGHTNESSDOWN },
40
 
        { 0x1e, KEY_SEARCH },           /* search + */
41
 
        { 0x20, KEY_CHANNELUP },        /* channel / program + */
42
 
        { 0x21, KEY_CHANNELDOWN },      /* channel / program - */
43
 
        { 0x22, KEY_CHANNEL },          /* alt / channel */
44
 
        { 0x23, KEY_LANGUAGE },         /* 1st / 2nd language */
45
 
        { 0x26, KEY_SLEEP },            /* sleeptimer */
46
 
        { 0x2e, KEY_MENU },             /* 2nd controls (USA: menu) */
47
 
        { 0x30, KEY_PAUSE },
48
 
        { 0x32, KEY_REWIND },
49
 
        { 0x33, KEY_GOTO },
50
 
        { 0x35, KEY_PLAY },
51
 
        { 0x36, KEY_STOP },
52
 
        { 0x37, KEY_RECORD },           /* recording */
53
 
        { 0x3c, KEY_TEXT },             /* teletext submode (Japan: 12) */
54
 
        { 0x3d, KEY_SUSPEND },          /* system standby */
55
 
 
56
 
};
57
 
 
58
 
static struct rc_map_list rc5_tv_map = {
59
 
        .map = {
60
 
                .scan    = rc5_tv,
61
 
                .size    = ARRAY_SIZE(rc5_tv),
62
 
                .rc_type = RC_TYPE_UNKNOWN,     /* Legacy IR type */
63
 
                .name    = RC_MAP_RC5_TV,
64
 
        }
65
 
};
66
 
 
67
 
static int __init init_rc_map_rc5_tv(void)
68
 
{
69
 
        return rc_map_register(&rc5_tv_map);
70
 
}
71
 
 
72
 
static void __exit exit_rc_map_rc5_tv(void)
73
 
{
74
 
        rc_map_unregister(&rc5_tv_map);
75
 
}
76
 
 
77
 
module_init(init_rc_map_rc5_tv)
78
 
module_exit(exit_rc_map_rc5_tv)
79
 
 
80
 
MODULE_LICENSE("GPL");
81
 
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");