diff options
author | Sergei Haller <sergei@sergei-haller.de> | 2006-05-14 09:47:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:42 -0400 |
commit | a841e1f6d153c72e29802a33520f2c862792f7b0 (patch) | |
tree | 6729a39150b74fd1fd8f75ded1b9e409995d33fa /drivers/media/dvb/dvb-usb | |
parent | 4de2730a1d2742aea67f24d1041bdc5e0bad37e3 (diff) |
V4L/DVB (4453): [PATCH] dibcom mod3000p + mt2060 -- remote control
+ Added support for the remote control shipped with the pen drive size
DVB-T receiver
[ID 10b8:0bc7 DiBcom DiBcom USB2.0 DVB-T reference design (MOD3000P)]
Signed-off-by: Sergei Haller <sergei@sergei-haller.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-common.c | 61 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-mb.c | 8 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-mc.c | 2 |
3 files changed, 66 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c index 88062b219b91..d7e2319ff202 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-common.c +++ b/drivers/media/dvb/dvb-usb/dibusb-common.c | |||
@@ -343,6 +343,67 @@ struct dvb_usb_rc_key dibusb_rc_keys[] = { | |||
343 | { 0x86, 0x1e, KEY_DOWN }, | 343 | { 0x86, 0x1e, KEY_DOWN }, |
344 | { 0x86, 0x1f, KEY_LEFT }, | 344 | { 0x86, 0x1f, KEY_LEFT }, |
345 | { 0x86, 0x1b, KEY_RIGHT }, | 345 | { 0x86, 0x1b, KEY_RIGHT }, |
346 | |||
347 | /* Key codes for the DiBcom MOD3000 remote. */ | ||
348 | { 0x80, 0x00, KEY_MUTE }, | ||
349 | { 0x80, 0x01, KEY_TEXT }, | ||
350 | { 0x80, 0x02, KEY_HOME }, | ||
351 | { 0x80, 0x03, KEY_POWER }, | ||
352 | |||
353 | { 0x80, 0x04, KEY_RED }, | ||
354 | { 0x80, 0x05, KEY_GREEN }, | ||
355 | { 0x80, 0x06, KEY_YELLOW }, | ||
356 | { 0x80, 0x07, KEY_BLUE }, | ||
357 | |||
358 | { 0x80, 0x08, KEY_DVD }, | ||
359 | { 0x80, 0x09, KEY_AUDIO }, | ||
360 | { 0x80, 0x0a, KEY_MEDIA }, /* Pictures */ | ||
361 | { 0x80, 0x0b, KEY_VIDEO }, | ||
362 | |||
363 | { 0x80, 0x0c, KEY_BACK }, | ||
364 | { 0x80, 0x0d, KEY_UP }, | ||
365 | { 0x80, 0x0e, KEY_RADIO }, | ||
366 | { 0x80, 0x0f, KEY_EPG }, | ||
367 | |||
368 | { 0x80, 0x10, KEY_LEFT }, | ||
369 | { 0x80, 0x11, KEY_OK }, | ||
370 | { 0x80, 0x12, KEY_RIGHT }, | ||
371 | { 0x80, 0x13, KEY_UNKNOWN }, /* SAP */ | ||
372 | |||
373 | { 0x80, 0x14, KEY_TV }, | ||
374 | { 0x80, 0x15, KEY_DOWN }, | ||
375 | { 0x80, 0x16, KEY_MENU }, /* DVD Menu */ | ||
376 | { 0x80, 0x17, KEY_LAST }, | ||
377 | |||
378 | { 0x80, 0x18, KEY_RECORD }, | ||
379 | { 0x80, 0x19, KEY_STOP }, | ||
380 | { 0x80, 0x1a, KEY_PAUSE }, | ||
381 | { 0x80, 0x1b, KEY_PLAY }, | ||
382 | |||
383 | { 0x80, 0x1c, KEY_PREVIOUS }, | ||
384 | { 0x80, 0x1d, KEY_REWIND }, | ||
385 | { 0x80, 0x1e, KEY_FASTFORWARD }, | ||
386 | { 0x80, 0x1f, KEY_NEXT}, | ||
387 | |||
388 | { 0x80, 0x40, KEY_1 }, | ||
389 | { 0x80, 0x41, KEY_2 }, | ||
390 | { 0x80, 0x42, KEY_3 }, | ||
391 | { 0x80, 0x43, KEY_CHANNELUP }, | ||
392 | |||
393 | { 0x80, 0x44, KEY_4 }, | ||
394 | { 0x80, 0x45, KEY_5 }, | ||
395 | { 0x80, 0x46, KEY_6 }, | ||
396 | { 0x80, 0x47, KEY_CHANNELDOWN }, | ||
397 | |||
398 | { 0x80, 0x48, KEY_7 }, | ||
399 | { 0x80, 0x49, KEY_8 }, | ||
400 | { 0x80, 0x4a, KEY_9 }, | ||
401 | { 0x80, 0x4b, KEY_VOLUMEUP }, | ||
402 | |||
403 | { 0x80, 0x4c, KEY_CLEAR }, | ||
404 | { 0x80, 0x4d, KEY_0 }, | ||
405 | { 0x80, 0x4e, KEY_ENTER }, | ||
406 | { 0x80, 0x4f, KEY_VOLUMEDOWN }, | ||
346 | }; | 407 | }; |
347 | EXPORT_SYMBOL(dibusb_rc_keys); | 408 | EXPORT_SYMBOL(dibusb_rc_keys); |
348 | 409 | ||
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mb.c b/drivers/media/dvb/dvb-usb/dibusb-mb.c index dd5a13195886..64ad5b606c2a 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mb.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mb.c | |||
@@ -168,7 +168,7 @@ static struct dvb_usb_properties dibusb1_1_properties = { | |||
168 | 168 | ||
169 | .rc_interval = DEFAULT_RC_INTERVAL, | 169 | .rc_interval = DEFAULT_RC_INTERVAL, |
170 | .rc_key_map = dibusb_rc_keys, | 170 | .rc_key_map = dibusb_rc_keys, |
171 | .rc_key_map_size = 63, /* wow, that is ugly ... I want to load it to the driver dynamically */ | 171 | .rc_key_map_size = 111, /* wow, that is ugly ... I want to load it to the driver dynamically */ |
172 | .rc_query = dibusb_rc_query, | 172 | .rc_query = dibusb_rc_query, |
173 | 173 | ||
174 | .i2c_algo = &dibusb_i2c_algo, | 174 | .i2c_algo = &dibusb_i2c_algo, |
@@ -246,7 +246,7 @@ static struct dvb_usb_properties dibusb1_1_an2235_properties = { | |||
246 | 246 | ||
247 | .rc_interval = DEFAULT_RC_INTERVAL, | 247 | .rc_interval = DEFAULT_RC_INTERVAL, |
248 | .rc_key_map = dibusb_rc_keys, | 248 | .rc_key_map = dibusb_rc_keys, |
249 | .rc_key_map_size = 63, /* wow, that is ugly ... I want to load it to the driver dynamically */ | 249 | .rc_key_map_size = 111, /* wow, that is ugly ... I want to load it to the driver dynamically */ |
250 | .rc_query = dibusb_rc_query, | 250 | .rc_query = dibusb_rc_query, |
251 | 251 | ||
252 | .i2c_algo = &dibusb_i2c_algo, | 252 | .i2c_algo = &dibusb_i2c_algo, |
@@ -303,7 +303,7 @@ static struct dvb_usb_properties dibusb2_0b_properties = { | |||
303 | 303 | ||
304 | .rc_interval = DEFAULT_RC_INTERVAL, | 304 | .rc_interval = DEFAULT_RC_INTERVAL, |
305 | .rc_key_map = dibusb_rc_keys, | 305 | .rc_key_map = dibusb_rc_keys, |
306 | .rc_key_map_size = 63, /* wow, that is ugly ... I want to load it to the driver dynamically */ | 306 | .rc_key_map_size = 111, /* wow, that is ugly ... I want to load it to the driver dynamically */ |
307 | .rc_query = dibusb_rc_query, | 307 | .rc_query = dibusb_rc_query, |
308 | 308 | ||
309 | .i2c_algo = &dibusb_i2c_algo, | 309 | .i2c_algo = &dibusb_i2c_algo, |
@@ -354,7 +354,7 @@ static struct dvb_usb_properties artec_t1_usb2_properties = { | |||
354 | 354 | ||
355 | .rc_interval = DEFAULT_RC_INTERVAL, | 355 | .rc_interval = DEFAULT_RC_INTERVAL, |
356 | .rc_key_map = dibusb_rc_keys, | 356 | .rc_key_map = dibusb_rc_keys, |
357 | .rc_key_map_size = 63, /* wow, that is ugly ... I want to load it to the driver dynamically */ | 357 | .rc_key_map_size = 111, /* wow, that is ugly ... I want to load it to the driver dynamically */ |
358 | .rc_query = dibusb_rc_query, | 358 | .rc_query = dibusb_rc_query, |
359 | 359 | ||
360 | .i2c_algo = &dibusb_i2c_algo, | 360 | .i2c_algo = &dibusb_i2c_algo, |
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mc.c b/drivers/media/dvb/dvb-usb/dibusb-mc.c index 71aa6bba0735..eca4082a61ae 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mc.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mc.c | |||
@@ -61,7 +61,7 @@ static struct dvb_usb_properties dibusb_mc_properties = { | |||
61 | 61 | ||
62 | .rc_interval = DEFAULT_RC_INTERVAL, | 62 | .rc_interval = DEFAULT_RC_INTERVAL, |
63 | .rc_key_map = dibusb_rc_keys, | 63 | .rc_key_map = dibusb_rc_keys, |
64 | .rc_key_map_size = 63, /* FIXME */ | 64 | .rc_key_map_size = 111, /* FIXME */ |
65 | .rc_query = dibusb_rc_query, | 65 | .rc_query = dibusb_rc_query, |
66 | 66 | ||
67 | .i2c_algo = &dibusb_i2c_algo, | 67 | .i2c_algo = &dibusb_i2c_algo, |