diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-29 14:19:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:48 -0400 |
commit | 2e3658836efad06662968bd6373c72df06c4b2f1 (patch) | |
tree | 50748b6a7a9cbcb2e0a7d44a59c65783a8fe6fa7 /drivers/media/dvb/dvb-usb/cinergyT2-core.c | |
parent | 715a223323c8c8bcbe7739e20f6c619f7343b595 (diff) |
V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field
In order to be closer to V4L IR implementation, it is needed to replace
u8 custom, data
to:
u16 scan
This allows using non-rc5 mappings, like the 8 bit keycodes used on older
protocols. It will also allow future implementations of rc6 keystrokes
when needed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/cinergyT2-core.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/cinergyT2-core.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/drivers/media/dvb/dvb-usb/cinergyT2-core.c b/drivers/media/dvb/dvb-usb/cinergyT2-core.c index 80e37a0d089..e37ac4d4860 100644 --- a/drivers/media/dvb/dvb-usb/cinergyT2-core.c +++ b/drivers/media/dvb/dvb-usb/cinergyT2-core.c | |||
@@ -85,43 +85,43 @@ static int cinergyt2_frontend_attach(struct dvb_usb_adapter *adap) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | static struct dvb_usb_rc_key cinergyt2_rc_keys[] = { | 87 | static struct dvb_usb_rc_key cinergyt2_rc_keys[] = { |
88 | { 0x04, 0x01, KEY_POWER }, | 88 | { 0x0401, KEY_POWER }, |
89 | { 0x04, 0x02, KEY_1 }, | 89 | { 0x0402, KEY_1 }, |
90 | { 0x04, 0x03, KEY_2 }, | 90 | { 0x0403, KEY_2 }, |
91 | { 0x04, 0x04, KEY_3 }, | 91 | { 0x0404, KEY_3 }, |
92 | { 0x04, 0x05, KEY_4 }, | 92 | { 0x0405, KEY_4 }, |
93 | { 0x04, 0x06, KEY_5 }, | 93 | { 0x0406, KEY_5 }, |
94 | { 0x04, 0x07, KEY_6 }, | 94 | { 0x0407, KEY_6 }, |
95 | { 0x04, 0x08, KEY_7 }, | 95 | { 0x0408, KEY_7 }, |
96 | { 0x04, 0x09, KEY_8 }, | 96 | { 0x0409, KEY_8 }, |
97 | { 0x04, 0x0a, KEY_9 }, | 97 | { 0x040a, KEY_9 }, |
98 | { 0x04, 0x0c, KEY_0 }, | 98 | { 0x040c, KEY_0 }, |
99 | { 0x04, 0x0b, KEY_VIDEO }, | 99 | { 0x040b, KEY_VIDEO }, |
100 | { 0x04, 0x0d, KEY_REFRESH }, | 100 | { 0x040d, KEY_REFRESH }, |
101 | { 0x04, 0x0e, KEY_SELECT }, | 101 | { 0x040e, KEY_SELECT }, |
102 | { 0x04, 0x0f, KEY_EPG }, | 102 | { 0x040f, KEY_EPG }, |
103 | { 0x04, 0x10, KEY_UP }, | 103 | { 0x0410, KEY_UP }, |
104 | { 0x04, 0x14, KEY_DOWN }, | 104 | { 0x0414, KEY_DOWN }, |
105 | { 0x04, 0x11, KEY_LEFT }, | 105 | { 0x0411, KEY_LEFT }, |
106 | { 0x04, 0x13, KEY_RIGHT }, | 106 | { 0x0413, KEY_RIGHT }, |
107 | { 0x04, 0x12, KEY_OK }, | 107 | { 0x0412, KEY_OK }, |
108 | { 0x04, 0x15, KEY_TEXT }, | 108 | { 0x0415, KEY_TEXT }, |
109 | { 0x04, 0x16, KEY_INFO }, | 109 | { 0x0416, KEY_INFO }, |
110 | { 0x04, 0x17, KEY_RED }, | 110 | { 0x0417, KEY_RED }, |
111 | { 0x04, 0x18, KEY_GREEN }, | 111 | { 0x0418, KEY_GREEN }, |
112 | { 0x04, 0x19, KEY_YELLOW }, | 112 | { 0x0419, KEY_YELLOW }, |
113 | { 0x04, 0x1a, KEY_BLUE }, | 113 | { 0x041a, KEY_BLUE }, |
114 | { 0x04, 0x1c, KEY_VOLUMEUP }, | 114 | { 0x041c, KEY_VOLUMEUP }, |
115 | { 0x04, 0x1e, KEY_VOLUMEDOWN }, | 115 | { 0x041e, KEY_VOLUMEDOWN }, |
116 | { 0x04, 0x1d, KEY_MUTE }, | 116 | { 0x041d, KEY_MUTE }, |
117 | { 0x04, 0x1b, KEY_CHANNELUP }, | 117 | { 0x041b, KEY_CHANNELUP }, |
118 | { 0x04, 0x1f, KEY_CHANNELDOWN }, | 118 | { 0x041f, KEY_CHANNELDOWN }, |
119 | { 0x04, 0x40, KEY_PAUSE }, | 119 | { 0x0440, KEY_PAUSE }, |
120 | { 0x04, 0x4c, KEY_PLAY }, | 120 | { 0x044c, KEY_PLAY }, |
121 | { 0x04, 0x58, KEY_RECORD }, | 121 | { 0x0458, KEY_RECORD }, |
122 | { 0x04, 0x54, KEY_PREVIOUS }, | 122 | { 0x0454, KEY_PREVIOUS }, |
123 | { 0x04, 0x48, KEY_STOP }, | 123 | { 0x0448, KEY_STOP }, |
124 | { 0x04, 0x5c, KEY_NEXT } | 124 | { 0x045c, KEY_NEXT } |
125 | }; | 125 | }; |
126 | 126 | ||
127 | /* Number of keypresses to ignore before detect repeating */ | 127 | /* Number of keypresses to ignore before detect repeating */ |