diff options
author | Nickolay V. Shmyrev <devnull@localhost> | 2006-01-18 20:21:46 +0000 |
---|---|---|
committer | Nickolay V. Shmyrev <devnull@localhost> | 2006-01-18 20:21:46 +0000 |
commit | f3a729df581ce28d255721c36eaff2193df74da3 (patch) | |
tree | bdcff5fde727bc40a9764de074dba1a0afe116cf /linux | |
parent | a75d791caf5378684e185ffdb8ac91881e240d71 (diff) | |
download | mediapointer-dvb-s2-f3a729df581ce28d255721c36eaff2193df74da3.tar.gz mediapointer-dvb-s2-f3a729df581ce28d255721c36eaff2193df74da3.tar.bz2 |
Remove duplicated keymaps and add keymap for KWorld LTV883IR.
From: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* linux/drivers/media/common/ir-keymaps.c:
* linux/drivers/media/video/bttv-input.c: (bttv_input_init):
* linux/drivers/media/video/cx88/cx88-input.c: (cx88_ir_init):
* linux/drivers/media/video/saa7134/saa7134-input.c:
(saa7134_input_init1):
* linux/include/media/ir-common.h:
- Remove duplicated keymaps and add keymap for KWorld LTV883IR.
Thanks to Jon Ferguson <jon@sd-6.org>.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/common/ir-keymaps.c | 84 | ||||
-rw-r--r-- | linux/drivers/media/video/bttv-input.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-input.c | 9 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-input.c | 6 | ||||
-rw-r--r-- | linux/include/media/ir-common.h | 6 |
5 files changed, 18 insertions, 91 deletions
diff --git a/linux/drivers/media/common/ir-keymaps.c b/linux/drivers/media/common/ir-keymaps.c index e0996abcd..6280962f7 100644 --- a/linux/drivers/media/common/ir-keymaps.c +++ b/linux/drivers/media/common/ir-keymaps.c @@ -1,6 +1,6 @@ /* - $Id: ir-keymaps.c,v 1.3 2006/01/17 23:56:15 rmcc Exp $ + $Id: ir-keymaps.c,v 1.4 2006/01/18 20:21:46 nsh Exp $ Keytables for supported remote controls. This file is part of video4linux. @@ -163,7 +163,7 @@ EXPORT_SYMBOL_GPL(ir_codes_apac_viewcomp); /* ---------------------------------------------------------------------- */ -IR_KEYTAB_TYPE ir_codes_conceptronic[IR_KEYTAB_SIZE] = { +IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE] = { [ 0x1e ] = KEY_POWER, // power [ 0x07 ] = KEY_MEDIA, // source @@ -225,7 +225,7 @@ IR_KEYTAB_TYPE ir_codes_conceptronic[IR_KEYTAB_SIZE] = { [ 0x18 ] = KEY_MUTE // mute/unmute }; -EXPORT_SYMBOL_GPL(ir_codes_conceptronic); +EXPORT_SYMBOL_GPL(ir_codes_pixelview); IR_KEYTAB_TYPE ir_codes_nebula[IR_KEYTAB_SIZE] = { [ 0x00 ] = KEY_0, @@ -889,50 +889,6 @@ IR_KEYTAB_TYPE ir_codes_eztv[IR_KEYTAB_SIZE] = { EXPORT_SYMBOL_GPL(ir_codes_eztv); -IR_KEYTAB_TYPE ir_codes_avacssmart[IR_KEYTAB_SIZE] = { - [ 0x1e ] = KEY_POWER, // power - [ 0x1c ] = KEY_SEARCH, // scan - [ 0x07 ] = KEY_SELECT, // source - - [ 0x16 ] = KEY_VOLUMEUP, - [ 0x14 ] = KEY_VOLUMEDOWN, - [ 0x1f ] = KEY_CHANNELUP, - [ 0x17 ] = KEY_CHANNELDOWN, - [ 0x18 ] = KEY_MUTE, - - [ 0x02 ] = KEY_0, - [ 0x01 ] = KEY_1, - [ 0x0b ] = KEY_2, - [ 0x1b ] = KEY_3, - [ 0x05 ] = KEY_4, - [ 0x09 ] = KEY_5, - [ 0x15 ] = KEY_6, - [ 0x06 ] = KEY_7, - [ 0x0a ] = KEY_8, - [ 0x12 ] = KEY_9, - [ 0x10 ] = KEY_DOT, - - [ 0x03 ] = KEY_TUNER, // tv/fm - [ 0x04 ] = KEY_REWIND, // fm tuning left or function left - [ 0x0c ] = KEY_FORWARD, // fm tuning right or function right - - [ 0x00 ] = KEY_RECORD, - [ 0x08 ] = KEY_STOP, - [ 0x11 ] = KEY_PLAY, - - [ 0x19 ] = KEY_ZOOM, - [ 0x0e ] = KEY_MENU, // function - [ 0x13 ] = KEY_AGAIN, // recall - [ 0x1d ] = KEY_RESTART, // reset - [ 0x1a ] = KEY_SHUFFLE, // snapshot/shuffle - -// FIXME - [ 0x0d ] = KEY_F21, // mts - [ 0x0f ] = KEY_F22, // min -}; - -EXPORT_SYMBOL_GPL(ir_codes_avacssmart); - /* Alex Hermann <gaaf@gmx.net> */ IR_KEYTAB_TYPE ir_codes_md2819[IR_KEYTAB_SIZE] = { [ 0x28 ] = KEY_1, @@ -1565,37 +1521,3 @@ IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE] = { EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new); -IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE] = { - [ 0x02 ] = KEY_0, - [ 0x01 ] = KEY_1, - [ 0x0b ] = KEY_2, - [ 0x1b ] = KEY_3, - [ 0x05 ] = KEY_4, - [ 0x09 ] = KEY_5, - [ 0x15 ] = KEY_6, - [ 0x06 ] = KEY_7, - [ 0x0a ] = KEY_8, - [ 0x12 ] = KEY_9, - - [ 0x03 ] = KEY_TUNER, /* TV/FM */ - [ 0x07 ] = KEY_SEARCH, /* scan */ - [ 0x1c ] = KEY_ZOOM, /* full screen */ - [ 0x1e ] = KEY_POWER, - [ 0x17 ] = KEY_VOLUMEDOWN, - [ 0x1f ] = KEY_VOLUMEUP, - [ 0x14 ] = KEY_CHANNELDOWN, - [ 0x16 ] = KEY_CHANNELUP, - [ 0x18 ] = KEY_MUTE, - - [ 0x00 ] = KEY_LIST, /* source */ - [ 0x13 ] = KEY_INFO, /* loop */ - [ 0x10 ] = KEY_LAST, /* +100 */ - [ 0x0d ] = KEY_CLEAR, /* reset */ - [ 0x0c ] = BTN_RIGHT, /* fun++ */ - [ 0x04 ] = BTN_LEFT, /* fun-- */ - [ 0x0e ] = KEY_GOTO, /* function */ - [ 0x0f ] = KEY_STOP, /* freeze */ -}; - -EXPORT_SYMBOL_GPL(ir_codes_pixelview); - diff --git a/linux/drivers/media/video/bttv-input.c b/linux/drivers/media/video/bttv-input.c index 54e67f5df..245fccc8e 100644 --- a/linux/drivers/media/video/bttv-input.c +++ b/linux/drivers/media/video/bttv-input.c @@ -1,5 +1,5 @@ /* - * $Id: bttv-input.c,v 1.6 2006/01/17 20:05:21 rmcc Exp $ + * $Id: bttv-input.c,v 1.7 2006/01/18 20:21:46 nsh Exp $ * * Copyright (c) 2003 Gerd Knorr * Copyright (c) 2003 Pavel Machek @@ -330,7 +330,7 @@ int bttv_input_init(struct bttv *btv) ir->polling = 50; // ms break; case BTTV_BOARD_CONCEPTRONIC_CTVFMI2: - ir_codes = ir_codes_conceptronic; + ir_codes = ir_codes_pixelview; ir->mask_keycode = 0x001F00; ir->mask_keyup = 0x006000; ir->polling = 50; // ms diff --git a/linux/drivers/media/video/cx88/cx88-input.c b/linux/drivers/media/video/cx88/cx88-input.c index 912a9f009..5dd0acaa9 100644 --- a/linux/drivers/media/video/cx88/cx88-input.c +++ b/linux/drivers/media/video/cx88/cx88-input.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-input.c,v 1.31 2006/01/17 20:05:21 rmcc Exp $ + * $Id: cx88-input.c,v 1.32 2006/01/18 20:21:47 nsh Exp $ * * Device driver for GPIO attached remote control interfaces * on Conexant 2388x based TV/DVB cards. @@ -194,6 +194,13 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) ir->mask_keyup = 0x80; ir->polling = 1; /* ms */ break; + case CX88_BOARD_KWORLD_LTV883: + ir_codes = ir_codes_pixelview; + ir->gpio_addr = MO_GP1_IO; + ir->mask_keycode = 0x1f; + ir->mask_keyup = 0x60; + ir->polling = 1; /* ms */ + break; case CX88_BOARD_ADSTECH_DVB_T_PCI: ir_codes = ir_codes_adstech_dvb_t_pci; ir->gpio_addr = MO_GP1_IO; diff --git a/linux/drivers/media/video/saa7134/saa7134-input.c b/linux/drivers/media/video/saa7134/saa7134-input.c index a7a01585e..36c3029f9 100644 --- a/linux/drivers/media/video/saa7134/saa7134-input.c +++ b/linux/drivers/media/video/saa7134/saa7134-input.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-input.c,v 1.52 2006/01/17 21:54:41 rmcc Exp $ + * $Id: saa7134-input.c,v 1.53 2006/01/18 20:21:47 nsh Exp $ * * handle saa7134 IR remotes via linux kernel input layer. * @@ -171,7 +171,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) break; case SAA7134_BOARD_KWORLD_XPERT: case SAA7134_BOARD_AVACSSMARTTV: - ir_codes = ir_codes_avacssmart; + ir_codes = ir_codes_pixelview; mask_keycode = 0x00001F; mask_keyup = 0x000020; polling = 50; // ms @@ -192,7 +192,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4); break; case SAA7134_BOARD_KWORLD_TERMINATOR: - ir_codes = ir_codes_avacssmart; + ir_codes = ir_codes_pixelview; mask_keycode = 0x00001f; mask_keyup = 0x000060; polling = 50; // ms diff --git a/linux/include/media/ir-common.h b/linux/include/media/ir-common.h index 5936d5931..6fa275c53 100644 --- a/linux/include/media/ir-common.h +++ b/linux/include/media/ir-common.h @@ -1,5 +1,5 @@ /* - * $Id: ir-common.h,v 1.17 2006/01/18 00:13:03 rmcc Exp $ + * $Id: ir-common.h,v 1.18 2006/01/18 20:21:47 nsh Exp $ * * some common structs and functions to handle infrared remotes via * input layer ... @@ -64,7 +64,7 @@ extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE]; -extern IR_KEYTAB_TYPE ir_codes_conceptronic[IR_KEYTAB_SIZE]; +extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_nebula[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_dntv_live_dvb_t[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_iodata_bctv7e[IR_KEYTAB_SIZE]; @@ -79,7 +79,6 @@ extern IR_KEYTAB_TYPE ir_codes_flyvideo[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_flydvb[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_cinergy[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_eztv[IR_KEYTAB_SIZE]; -extern IR_KEYTAB_TYPE ir_codes_avacssmart[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_md2819[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_videomate_tv_pvr[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_manli[IR_KEYTAB_SIZE]; @@ -91,7 +90,6 @@ extern IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE]; extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; -extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE]; #endif |