[media] em28xx: Add IR support for HVR-930C

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2011-11-20 12:16:25 -02:00
parent 20ae9742eb
commit dfbbf5da6c
2 changed files with 52 additions and 0 deletions

View File

@ -181,6 +181,57 @@ static struct rc_map_table rc5_hauppauge_new[] = {
{ 0x1d3d, KEY_POWER },
{ 0x1d3f, KEY_HOME },
/*
* Keycodes for PT# R-005 remote bundled with Haupauge HVR-930C
* Keycodes start with address = 0x1c
*/
{ 0x1c3b, KEY_GOTO },
{ 0x1c3d, KEY_POWER },
{ 0x1c14, KEY_UP },
{ 0x1c15, KEY_DOWN },
{ 0x1c16, KEY_LEFT },
{ 0x1c17, KEY_RIGHT },
{ 0x1c25, KEY_OK },
{ 0x1c00, KEY_0 },
{ 0x1c01, KEY_1 },
{ 0x1c02, KEY_2 },
{ 0x1c03, KEY_3 },
{ 0x1c04, KEY_4 },
{ 0x1c05, KEY_5 },
{ 0x1c06, KEY_6 },
{ 0x1c07, KEY_7 },
{ 0x1c08, KEY_8 },
{ 0x1c09, KEY_9 },
{ 0x1c1f, KEY_EXIT }, /* BACK */
{ 0x1c0d, KEY_MENU },
{ 0x1c1c, KEY_TV },
{ 0x1c10, KEY_VOLUMEUP },
{ 0x1c11, KEY_VOLUMEDOWN },
{ 0x1c20, KEY_CHANNELUP },
{ 0x1c21, KEY_CHANNELDOWN },
{ 0x1c0f, KEY_MUTE },
{ 0x1c12, KEY_PREVIOUS }, /* Prev */
{ 0x1c36, KEY_STOP },
{ 0x1c37, KEY_RECORD },
{ 0x1c24, KEY_LAST }, /* <| */
{ 0x1c1e, KEY_NEXT }, /* >| */
{ 0x1c0a, KEY_TEXT },
{ 0x1c0e, KEY_SUBTITLE }, /* CC */
{ 0x1c32, KEY_REWIND },
{ 0x1c30, KEY_PAUSE },
{ 0x1c35, KEY_PLAY },
{ 0x1c34, KEY_FASTFORWARD },
/*
* Keycodes for the old Black Remote Controller
* This one also uses RC-5 protocol

View File

@ -922,6 +922,7 @@ struct em28xx_board em28xx_boards[] = {
#else
.tuner_type = TUNER_ABSENT,
#endif
.ir_codes = RC_MAP_HAUPPAUGE,
.i2c_speed = EM2874_I2C_SECONDARY_BUS_SELECT |
EM28XX_I2C_CLK_WAIT_ENABLE |
EM28XX_I2C_FREQ_400_KHZ,