summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2006-01-23 09:44:10 -0200
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-23 09:44:10 -0200
commitb639f9d286f2216795492eac2a39b8ed6b4d555c (patch)
tree8a618d3041ea3902fcf7f66ea43196575d4648eb /drivers/media
parent4c0f631e14b849782259519c749414b1f1ddbfa8 (diff)
V4L/DVB (3400): Remove duplicated keymaps and add keymap for KWorld LTV883IR.
- 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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/ir-keymaps.c194
-rw-r--r--drivers/media/video/bttv-input.c2
-rw-r--r--drivers/media/video/cx88/cx88-input.c7
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c6
4 files changed, 47 insertions, 162 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c
index 468f66013393..a294d5c2c73f 100644
--- a/drivers/media/common/ir-keymaps.c
+++ b/drivers/media/common/ir-keymaps.c
@@ -32,50 +32,6 @@ IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE] = {
EXPORT_SYMBOL_GPL(ir_codes_empty);
-IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE] = {
- [ 0x22 ] = KEY_0,
- [ 0x28 ] = KEY_1,
- [ 0x18 ] = KEY_2,
- [ 0x38 ] = KEY_3,
- [ 0x24 ] = KEY_4,
- [ 0x14 ] = KEY_5,
- [ 0x34 ] = KEY_6,
- [ 0x2c ] = KEY_7,
- [ 0x1c ] = KEY_8,
- [ 0x3c ] = KEY_9,
-
- [ 0x30 ] = KEY_EJECTCD, // Unmarked on my controller
- [ 0x00 ] = KEY_POWER,
- [ 0x12 ] = BTN_LEFT, // DISPLAY/L
- [ 0x32 ] = BTN_RIGHT, // LOOP/R
- [ 0x0a ] = KEY_MUTE,
- [ 0x26 ] = KEY_RECORD,
- [ 0x16 ] = KEY_PAUSE,
- [ 0x36 ] = KEY_STOP,
- [ 0x1e ] = KEY_VOLUMEDOWN,
- [ 0x3e ] = KEY_VOLUMEUP,
-
- [ 0x20 ] = KEY_TUNER, // TV/FM
- [ 0x10 ] = KEY_CD,
- [ 0x08 ] = KEY_VIDEO,
- [ 0x04 ] = KEY_AUDIO,
- [ 0x0c ] = KEY_ZOOM, // full screen
- [ 0x02 ] = KEY_INFO, // preview
- [ 0x2a ] = KEY_SEARCH, // autoscan
- [ 0x1a ] = KEY_STOP, // freeze
- [ 0x3a ] = KEY_RECORD, // capture
- [ 0x06 ] = KEY_PLAY, // unmarked
- [ 0x2e ] = KEY_RED, // unmarked
- [ 0x0e ] = KEY_GREEN, // unmarked
-
- [ 0x21 ] = KEY_YELLOW, // unmarked
- [ 0x11 ] = KEY_CHANNELDOWN,
- [ 0x31 ] = KEY_CHANNELUP,
- [ 0x01 ] = KEY_BLUE, // unmarked
-};
-
-EXPORT_SYMBOL_GPL(ir_codes_avermedia);
-
/* Matt Jesson <dvb@jesson.eclipse.co.uk */
IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE] = {
[ 0x28 ] = KEY_0, //'0' / 'enter'
@@ -162,7 +118,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
@@ -224,7 +180,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,
@@ -888,52 +844,8 @@ 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] = {
+IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE] = {
[ 0x28 ] = KEY_1,
[ 0x18 ] = KEY_2,
[ 0x38 ] = KEY_3,
@@ -945,41 +857,41 @@ IR_KEYTAB_TYPE ir_codes_md2819[IR_KEYTAB_SIZE] = {
[ 0x3c ] = KEY_9,
[ 0x22 ] = KEY_0,
- [ 0x20 ] = KEY_TV, // TV/FM
- [ 0x10 ] = KEY_CD, // CD
- [ 0x30 ] = KEY_TEXT, // TELETEXT
- [ 0x00 ] = KEY_POWER, // POWER
-
- [ 0x08 ] = KEY_VIDEO, // VIDEO
- [ 0x04 ] = KEY_AUDIO, // AUDIO
- [ 0x0c ] = KEY_ZOOM, // FULL SCREEN
-
- [ 0x12 ] = KEY_SUBTITLE, // DISPLAY - ???
- [ 0x32 ] = KEY_REWIND, // LOOP - ???
- [ 0x02 ] = KEY_PRINT, // PREVIEW - ???
-
- [ 0x2a ] = KEY_SEARCH, // AUTOSCAN
- [ 0x1a ] = KEY_SLEEP, // FREEZE - ???
- [ 0x3a ] = KEY_SHUFFLE, // SNAPSHOT - ???
- [ 0x0a ] = KEY_MUTE, // MUTE
-
- [ 0x26 ] = KEY_RECORD, // RECORD
- [ 0x16 ] = KEY_PAUSE, // PAUSE
- [ 0x36 ] = KEY_STOP, // STOP
- [ 0x06 ] = KEY_PLAY, // PLAY
-
- [ 0x2e ] = KEY_RED, // <RED>
- [ 0x21 ] = KEY_GREEN, // <GREEN>
- [ 0x0e ] = KEY_YELLOW, // <YELLOW>
- [ 0x01 ] = KEY_BLUE, // <BLUE>
-
- [ 0x1e ] = KEY_VOLUMEDOWN, // VOLUME-
- [ 0x3e ] = KEY_VOLUMEUP, // VOLUME+
- [ 0x11 ] = KEY_CHANNELDOWN, // CHANNEL/PAGE-
- [ 0x31 ] = KEY_CHANNELUP // CHANNEL/PAGE+
+ [ 0x20 ] = KEY_TV, /* TV/FM */
+ [ 0x10 ] = KEY_CD, /* CD */
+ [ 0x30 ] = KEY_TEXT, /* TELETEXT */
+ [ 0x00 ] = KEY_POWER, /* POWER */
+
+ [ 0x08 ] = KEY_VIDEO, /* VIDEO */
+ [ 0x04 ] = KEY_AUDIO, /* AUDIO */
+ [ 0x0c ] = KEY_ZOOM, /* FULL SCREEN */
+
+ [ 0x12 ] = KEY_SUBTITLE, /* DISPLAY */
+ [ 0x32 ] = KEY_REWIND, /* LOOP */
+ [ 0x02 ] = KEY_PRINT, /* PREVIEW */
+
+ [ 0x2a ] = KEY_SEARCH, /* AUTOSCAN */
+ [ 0x1a ] = KEY_SLEEP, /* FREEZE */
+ [ 0x3a ] = KEY_SHUFFLE, /* SNAPSHOT */
+ [ 0x0a ] = KEY_MUTE, /* MUTE */
+
+ [ 0x26 ] = KEY_RECORD, /* RECORD */
+ [ 0x16 ] = KEY_PAUSE, /* PAUSE */
+ [ 0x36 ] = KEY_STOP, /* STOP */
+ [ 0x06 ] = KEY_PLAY, /* PLAY */
+
+ [ 0x2e ] = KEY_RED, /* RED */
+ [ 0x21 ] = KEY_GREEN, /* GREEN */
+ [ 0x0e ] = KEY_YELLOW, /* YELLOW */
+ [ 0x01 ] = KEY_BLUE, /* BLUE */
+
+ [ 0x1e ] = KEY_VOLUMEDOWN, /* VOLUME- */
+ [ 0x3e ] = KEY_VOLUMEUP, /* VOLUME+ */
+ [ 0x11 ] = KEY_CHANNELDOWN, /* CHANNEL/PAGE- */
+ [ 0x31 ] = KEY_CHANNELUP /* CHANNEL/PAGE+ */
};
-EXPORT_SYMBOL_GPL(ir_codes_md2819);
+EXPORT_SYMBOL_GPL(ir_codes_avermedia);
IR_KEYTAB_TYPE ir_codes_videomate_tv_pvr[IR_KEYTAB_SIZE] = {
[ 0x14 ] = KEY_MUTE,
@@ -1501,37 +1413,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/drivers/media/video/bttv-input.c b/drivers/media/video/bttv-input.c
index 42760ae867d6..c637677acefd 100644
--- a/drivers/media/video/bttv-input.c
+++ b/drivers/media/video/bttv-input.c
@@ -328,7 +328,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/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index a4fa92c1b0c7..800e2b31ac7b 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -192,6 +192,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/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 342568cf728f..ecfb6e2b3bd3 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -169,7 +169,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
@@ -181,7 +181,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
- ir_codes = ir_codes_md2819;
+ ir_codes = ir_codes_avermedia;
mask_keycode = 0x0007C8;
mask_keydown = 0x000010;
polling = 50; // ms
@@ -190,7 +190,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