mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
V4L/DVB (12595): common/ir: use a struct for keycode tables
Currently, V4L uses a scancode table whose index is the scancode and the value is the keycode. While this works, it has some drawbacks: 1) It requires that the scancode to be at the range 00-7f; 2) keycodes should be masked on 7 bits in order for it to work; 3) due to the 7 bits approach, sometimes it is not possible to replace the default keyboard to another one with a different encoding rule; 4) it is different than what is done with dvb-usb approach; 5) it requires a typedef for it to work. This is not a recommended Linux CodingStyle. This patch is part of a larger series of IR changes. It basically replaces the IR_KEYTAB_TYPE tables by a structured table: struct ir_scancode { u16 scancode; u32 keycode; }; This is very close to what dvb does. So, a further integration with DVB code will be easy. While we've changed the tables, for now, the IR keycode handling is still based on the old approach. The only notable effect is the redution of about 35% of the ir-common module size: text data bss dec hex filename 6721 29208 4 35933 8c5d old/ir-common.ko 5756 18040 4 23800 5cf8 new/ir-common.ko In thesis, we could be using above u8 for scancode, reducing even more the size of the module, but defining it as u16 is more convenient, since, on dvb, each scancode has up to 16 bits, and we currently have a few troubles with rc5, as their scancodes are defined with more than 8 bits. This patch itself shouldn't be doing any functional changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
47f7f6fb79
commit
715a223323
@ -58,13 +58,24 @@ static void ir_input_key_event(struct input_dev *dev, struct ir_input_state *ir)
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
void ir_input_init(struct input_dev *dev, struct ir_input_state *ir,
|
||||
int ir_type, IR_KEYTAB_TYPE *ir_codes)
|
||||
int ir_type, struct ir_scancode_table *ir_codes)
|
||||
{
|
||||
int i;
|
||||
|
||||
ir->ir_type = ir_type;
|
||||
|
||||
memset(ir->ir_codes, sizeof(ir->ir_codes), 0);
|
||||
|
||||
/*
|
||||
* FIXME: This is a temporary workaround to use the new IR tables
|
||||
* with the old approach. Later patches will replace this to a
|
||||
* proper method
|
||||
*/
|
||||
|
||||
if (ir_codes)
|
||||
memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes));
|
||||
for (i = 0; i < ir_codes->size; i++)
|
||||
if (ir_codes->scan[i].scancode < IR_KEYTAB_SIZE)
|
||||
ir->ir_codes[ir_codes->scan[i].scancode] = ir_codes->scan[i].keycode;
|
||||
|
||||
dev->keycode = ir->ir_codes;
|
||||
dev->keycodesize = sizeof(IR_KEYTAB_TYPE);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -577,7 +577,7 @@ static irqreturn_t dm1105dvb_irq(int irq, void *dev_id)
|
||||
int __devinit dm1105_ir_init(struct dm1105dvb *dm1105)
|
||||
{
|
||||
struct input_dev *input_dev;
|
||||
IR_KEYTAB_TYPE *ir_codes = ir_codes_dm1105_nec;
|
||||
struct ir_scancode_table *ir_codes = &ir_codes_dm1105_nec_table;
|
||||
int ir_type = IR_TYPE_OTHER;
|
||||
int err = -ENOMEM;
|
||||
|
||||
|
@ -225,7 +225,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
|
||||
case 0x1012:
|
||||
/* The hauppauge keymap is a superset of these remotes */
|
||||
ir_input_init(input_dev, &budget_ci->ir.state,
|
||||
IR_TYPE_RC5, ir_codes_hauppauge_new);
|
||||
IR_TYPE_RC5, &ir_codes_hauppauge_new_table);
|
||||
|
||||
if (rc5_device < 0)
|
||||
budget_ci->ir.rc5_device = 0x1f;
|
||||
@ -237,7 +237,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
|
||||
case 0x101a:
|
||||
/* for the Technotrend 1500 bundled remote */
|
||||
ir_input_init(input_dev, &budget_ci->ir.state,
|
||||
IR_TYPE_RC5, ir_codes_tt_1500);
|
||||
IR_TYPE_RC5, &ir_codes_tt_1500_table);
|
||||
|
||||
if (rc5_device < 0)
|
||||
budget_ci->ir.rc5_device = IR_DEVICE_ANY;
|
||||
@ -247,7 +247,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
|
||||
default:
|
||||
/* unknown remote */
|
||||
ir_input_init(input_dev, &budget_ci->ir.state,
|
||||
IR_TYPE_RC5, ir_codes_budget_ci_old);
|
||||
IR_TYPE_RC5, &ir_codes_budget_ci_old_table);
|
||||
|
||||
if (rc5_device < 0)
|
||||
budget_ci->ir.rc5_device = IR_DEVICE_ANY;
|
||||
|
@ -245,7 +245,7 @@ static void bttv_ir_stop(struct bttv *btv)
|
||||
int bttv_input_init(struct bttv *btv)
|
||||
{
|
||||
struct card_ir *ir;
|
||||
IR_KEYTAB_TYPE *ir_codes = NULL;
|
||||
struct ir_scancode_table *ir_codes = NULL;
|
||||
struct input_dev *input_dev;
|
||||
int ir_type = IR_TYPE_OTHER;
|
||||
int err = -ENOMEM;
|
||||
@ -263,7 +263,7 @@ int bttv_input_init(struct bttv *btv)
|
||||
case BTTV_BOARD_AVERMEDIA:
|
||||
case BTTV_BOARD_AVPHONE98:
|
||||
case BTTV_BOARD_AVERMEDIA98:
|
||||
ir_codes = ir_codes_avermedia;
|
||||
ir_codes = &ir_codes_avermedia_table;
|
||||
ir->mask_keycode = 0xf88000;
|
||||
ir->mask_keydown = 0x010000;
|
||||
ir->polling = 50; // ms
|
||||
@ -271,14 +271,14 @@ int bttv_input_init(struct bttv *btv)
|
||||
|
||||
case BTTV_BOARD_AVDVBT_761:
|
||||
case BTTV_BOARD_AVDVBT_771:
|
||||
ir_codes = ir_codes_avermedia_dvbt;
|
||||
ir_codes = &ir_codes_avermedia_dvbt_table;
|
||||
ir->mask_keycode = 0x0f00c0;
|
||||
ir->mask_keydown = 0x000020;
|
||||
ir->polling = 50; // ms
|
||||
break;
|
||||
|
||||
case BTTV_BOARD_PXELVWPLTVPAK:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
ir->mask_keycode = 0x003e00;
|
||||
ir->mask_keyup = 0x010000;
|
||||
ir->polling = 50; // ms
|
||||
@ -286,24 +286,24 @@ int bttv_input_init(struct bttv *btv)
|
||||
case BTTV_BOARD_PV_M4900:
|
||||
case BTTV_BOARD_PV_BT878P_9B:
|
||||
case BTTV_BOARD_PV_BT878P_PLUS:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
ir->mask_keycode = 0x001f00;
|
||||
ir->mask_keyup = 0x008000;
|
||||
ir->polling = 50; // ms
|
||||
break;
|
||||
|
||||
case BTTV_BOARD_WINFAST2000:
|
||||
ir_codes = ir_codes_winfast;
|
||||
ir_codes = &ir_codes_winfast_table;
|
||||
ir->mask_keycode = 0x1f8;
|
||||
break;
|
||||
case BTTV_BOARD_MAGICTVIEW061:
|
||||
case BTTV_BOARD_MAGICTVIEW063:
|
||||
ir_codes = ir_codes_winfast;
|
||||
ir_codes = &ir_codes_winfast_table;
|
||||
ir->mask_keycode = 0x0008e000;
|
||||
ir->mask_keydown = 0x00200000;
|
||||
break;
|
||||
case BTTV_BOARD_APAC_VIEWCOMP:
|
||||
ir_codes = ir_codes_apac_viewcomp;
|
||||
ir_codes = &ir_codes_apac_viewcomp_table;
|
||||
ir->mask_keycode = 0x001f00;
|
||||
ir->mask_keyup = 0x008000;
|
||||
ir->polling = 50; // ms
|
||||
@ -311,30 +311,30 @@ int bttv_input_init(struct bttv *btv)
|
||||
case BTTV_BOARD_ASKEY_CPH03X:
|
||||
case BTTV_BOARD_CONCEPTRONIC_CTVFMI2:
|
||||
case BTTV_BOARD_CONTVFMI:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
ir->mask_keycode = 0x001F00;
|
||||
ir->mask_keyup = 0x006000;
|
||||
ir->polling = 50; // ms
|
||||
break;
|
||||
case BTTV_BOARD_NEBULA_DIGITV:
|
||||
ir_codes = ir_codes_nebula;
|
||||
ir_codes = &ir_codes_nebula_table;
|
||||
btv->custom_irq = bttv_rc5_irq;
|
||||
ir->rc5_gpio = 1;
|
||||
break;
|
||||
case BTTV_BOARD_MACHTV_MAGICTV:
|
||||
ir_codes = ir_codes_apac_viewcomp;
|
||||
ir_codes = &ir_codes_apac_viewcomp_table;
|
||||
ir->mask_keycode = 0x001F00;
|
||||
ir->mask_keyup = 0x004000;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case BTTV_BOARD_KOZUMI_KTV_01C:
|
||||
ir_codes = ir_codes_pctv_sedna;
|
||||
ir_codes = &ir_codes_pctv_sedna_table;
|
||||
ir->mask_keycode = 0x001f00;
|
||||
ir->mask_keyup = 0x006000;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case BTTV_BOARD_ENLTV_FM_2:
|
||||
ir_codes = ir_codes_encore_enltv2;
|
||||
ir_codes = &ir_codes_encore_enltv2_table;
|
||||
ir->mask_keycode = 0x00fd00;
|
||||
ir->mask_keyup = 0x000080;
|
||||
ir->polling = 1; /* ms */
|
||||
|
@ -111,7 +111,7 @@ static int cx18_i2c_new_ir(struct i2c_adapter *adap, u32 hw, const char *type,
|
||||
switch (hw) {
|
||||
case CX18_HW_Z8F0811_IR_RX_HAUP:
|
||||
memset(&ir_init_data, 0, sizeof(struct IR_i2c_init_data));
|
||||
ir_init_data.ir_codes = ir_codes_hauppauge_new;
|
||||
ir_init_data.ir_codes = &ir_codes_hauppauge_new_table;
|
||||
ir_init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR;
|
||||
ir_init_data.type = IR_TYPE_RC5;
|
||||
ir_init_data.name = "CX23418 Z8F0811 Hauppauge";
|
||||
|
@ -282,7 +282,7 @@ struct cx231xx_board {
|
||||
|
||||
struct cx231xx_input input[MAX_CX231XX_INPUT];
|
||||
struct cx231xx_input radio;
|
||||
IR_KEYTAB_TYPE *ir_codes;
|
||||
struct ir_scancode_table *ir_codes;
|
||||
};
|
||||
|
||||
/* device states */
|
||||
|
@ -191,7 +191,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
{
|
||||
struct cx88_IR *ir;
|
||||
struct input_dev *input_dev;
|
||||
IR_KEYTAB_TYPE *ir_codes = NULL;
|
||||
struct ir_scancode_table *ir_codes = NULL;
|
||||
int ir_type = IR_TYPE_OTHER;
|
||||
int err = -ENOMEM;
|
||||
|
||||
@ -207,14 +207,14 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
case CX88_BOARD_DNTV_LIVE_DVB_T:
|
||||
case CX88_BOARD_KWORLD_DVB_T:
|
||||
case CX88_BOARD_KWORLD_DVB_T_CX22702:
|
||||
ir_codes = ir_codes_dntv_live_dvb_t;
|
||||
ir_codes = &ir_codes_dntv_live_dvb_t_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0x1f;
|
||||
ir->mask_keyup = 0x60;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1:
|
||||
ir_codes = ir_codes_cinergy_1400;
|
||||
ir_codes = &ir_codes_cinergy_1400_table;
|
||||
ir_type = IR_TYPE_PD;
|
||||
ir->sampling = 0xeb04; /* address */
|
||||
break;
|
||||
@ -229,14 +229,14 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
case CX88_BOARD_PCHDTV_HD3000:
|
||||
case CX88_BOARD_PCHDTV_HD5500:
|
||||
case CX88_BOARD_HAUPPAUGE_IRONLY:
|
||||
ir_codes = ir_codes_hauppauge_new;
|
||||
ir_codes = &ir_codes_hauppauge_new_table;
|
||||
ir_type = IR_TYPE_RC5;
|
||||
ir->sampling = 1;
|
||||
break;
|
||||
case CX88_BOARD_WINFAST_DTV2000H:
|
||||
case CX88_BOARD_WINFAST_DTV2000H_J:
|
||||
case CX88_BOARD_WINFAST_DTV1800H:
|
||||
ir_codes = ir_codes_winfast;
|
||||
ir_codes = &ir_codes_winfast_table;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir->mask_keycode = 0x8f8;
|
||||
ir->mask_keyup = 0x100;
|
||||
@ -245,14 +245,14 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
case CX88_BOARD_WINFAST2000XP_EXPERT:
|
||||
case CX88_BOARD_WINFAST_DTV1000:
|
||||
case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL:
|
||||
ir_codes = ir_codes_winfast;
|
||||
ir_codes = &ir_codes_winfast_table;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir->mask_keycode = 0x8f8;
|
||||
ir->mask_keyup = 0x100;
|
||||
ir->polling = 1; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_IODATA_GVBCTV7E:
|
||||
ir_codes = ir_codes_iodata_bctv7e;
|
||||
ir_codes = &ir_codes_iodata_bctv7e_table;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir->mask_keycode = 0xfd;
|
||||
ir->mask_keydown = 0x02;
|
||||
@ -260,7 +260,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
break;
|
||||
case CX88_BOARD_PROLINK_PLAYTVPVR:
|
||||
case CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0x1f;
|
||||
ir->mask_keyup = 0x80;
|
||||
@ -268,28 +268,28 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
break;
|
||||
case CX88_BOARD_PROLINK_PV_8000GT:
|
||||
case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME:
|
||||
ir_codes = ir_codes_pixelview_new;
|
||||
ir_codes = &ir_codes_pixelview_new_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0x3f;
|
||||
ir->mask_keyup = 0x80;
|
||||
ir->polling = 1; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_KWORLD_LTV883:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
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_codes = &ir_codes_adstech_dvb_t_pci_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0xbf;
|
||||
ir->mask_keyup = 0x40;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_MSI_TVANYWHERE_MASTER:
|
||||
ir_codes = ir_codes_msi_tvanywhere;
|
||||
ir_codes = &ir_codes_msi_tvanywhere_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0x1f;
|
||||
ir->mask_keyup = 0x40;
|
||||
@ -297,40 +297,40 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
break;
|
||||
case CX88_BOARD_AVERTV_303:
|
||||
case CX88_BOARD_AVERTV_STUDIO_303:
|
||||
ir_codes = ir_codes_avertv_303;
|
||||
ir_codes = &ir_codes_avertv_303_table;
|
||||
ir->gpio_addr = MO_GP2_IO;
|
||||
ir->mask_keycode = 0xfb;
|
||||
ir->mask_keydown = 0x02;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
|
||||
ir_codes = ir_codes_dntv_live_dvbt_pro;
|
||||
ir_type = IR_TYPE_PD;
|
||||
ir->sampling = 0xff00; /* address */
|
||||
ir_codes = &ir_codes_dntv_live_dvbt_pro_table;
|
||||
ir_type = IR_TYPE_PD;
|
||||
ir->sampling = 0xff00; /* address */
|
||||
break;
|
||||
case CX88_BOARD_NORWOOD_MICRO:
|
||||
ir_codes = ir_codes_norwood;
|
||||
ir_codes = &ir_codes_norwood_table;
|
||||
ir->gpio_addr = MO_GP1_IO;
|
||||
ir->mask_keycode = 0x0e;
|
||||
ir->mask_keyup = 0x80;
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_NPGTECH_REALTV_TOP10FM:
|
||||
ir_codes = ir_codes_npgtech;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir_codes = &ir_codes_npgtech_table;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir->mask_keycode = 0xfa;
|
||||
ir->polling = 50; /* ms */
|
||||
ir->polling = 50; /* ms */
|
||||
break;
|
||||
case CX88_BOARD_PINNACLE_PCTV_HD_800i:
|
||||
ir_codes = ir_codes_pinnacle_pctv_hd;
|
||||
ir_type = IR_TYPE_RC5;
|
||||
ir->sampling = 1;
|
||||
ir_codes = &ir_codes_pinnacle_pctv_hd_table;
|
||||
ir_type = IR_TYPE_RC5;
|
||||
ir->sampling = 1;
|
||||
break;
|
||||
case CX88_BOARD_POWERCOLOR_REAL_ANGEL:
|
||||
ir_codes = ir_codes_powercolor_real_angel;
|
||||
ir->gpio_addr = MO_GP2_IO;
|
||||
ir_codes = &ir_codes_powercolor_real_angel_table;
|
||||
ir->gpio_addr = MO_GP2_IO;
|
||||
ir->mask_keycode = 0x7e;
|
||||
ir->polling = 100; /* ms */
|
||||
ir->polling = 100; /* ms */
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -562,7 +562,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.name = "Gadmei UTV330+",
|
||||
.tuner_type = TUNER_TNF_5335MF,
|
||||
.tda9887_conf = TDA9887_PRESENT,
|
||||
.ir_codes = ir_codes_gadmei_rm008z,
|
||||
.ir_codes = &ir_codes_gadmei_rm008z_table,
|
||||
.decoder = EM28XX_SAA711X,
|
||||
.xclk = EM28XX_XCLK_FREQUENCY_12MHZ,
|
||||
.input = { {
|
||||
@ -736,7 +736,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
|
||||
.ir_codes = ir_codes_hauppauge_new,
|
||||
.ir_codes = &ir_codes_hauppauge_new_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -761,7 +761,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.tuner_type = TUNER_XC2028,
|
||||
.tuner_gpio = default_tuner_gpio,
|
||||
.mts_firmware = 1,
|
||||
.ir_codes = ir_codes_hauppauge_new,
|
||||
.ir_codes = &ir_codes_hauppauge_new_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -787,7 +787,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
|
||||
.ir_codes = ir_codes_hauppauge_new,
|
||||
.ir_codes = &ir_codes_hauppauge_new_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -813,7 +813,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
|
||||
.ir_codes = ir_codes_hauppauge_new,
|
||||
.ir_codes = &ir_codes_hauppauge_new_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -839,7 +839,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
|
||||
.ir_codes = ir_codes_pinnacle_pctv_hd,
|
||||
.ir_codes = &ir_codes_pinnacle_pctv_hd_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -865,7 +865,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
|
||||
.ir_codes = ir_codes_ati_tv_wonder_hd_600,
|
||||
.ir_codes = &ir_codes_ati_tv_wonder_hd_600_table,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -891,7 +891,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = default_digital,
|
||||
.ir_codes = ir_codes_terratec_cinergy_xs,
|
||||
.ir_codes = &ir_codes_terratec_cinergy_xs_table,
|
||||
.xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
@ -1443,7 +1443,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.decoder = EM28XX_TVP5150,
|
||||
.tuner_gpio = default_tuner_gpio,
|
||||
.ir_codes = ir_codes_kaiomy,
|
||||
.ir_codes = &ir_codes_kaiomy_table,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
.vmux = TVP5150_COMPOSITE0,
|
||||
@ -1543,7 +1543,7 @@ struct em28xx_board em28xx_boards[] = {
|
||||
.mts_firmware = 1,
|
||||
.has_dvb = 1,
|
||||
.dvb_gpio = evga_indtube_digital,
|
||||
.ir_codes = ir_codes_evga_indtube,
|
||||
.ir_codes = &ir_codes_evga_indtube_table,
|
||||
.input = { {
|
||||
.type = EM28XX_VMUX_TELEVISION,
|
||||
.vmux = TVP5150_COMPOSITE0,
|
||||
@ -2217,17 +2217,17 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
|
||||
break;
|
||||
case (EM2800_BOARD_TERRATEC_CINERGY_200):
|
||||
case (EM2820_BOARD_TERRATEC_CINERGY_250):
|
||||
init_data.ir_codes = ir_codes_em_terratec;
|
||||
init_data.ir_codes = &ir_codes_em_terratec_table;
|
||||
init_data.get_key = em28xx_get_key_terratec;
|
||||
init_data.name = "i2c IR (EM28XX Terratec)";
|
||||
break;
|
||||
case (EM2820_BOARD_PINNACLE_USB_2):
|
||||
init_data.ir_codes = ir_codes_pinnacle_grey;
|
||||
init_data.ir_codes = &ir_codes_pinnacle_grey_table;
|
||||
init_data.get_key = em28xx_get_key_pinnacle_usb_grey;
|
||||
init_data.name = "i2c IR (EM28XX Pinnacle PCTV)";
|
||||
break;
|
||||
case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2):
|
||||
init_data.ir_codes = ir_codes_hauppauge_new;
|
||||
init_data.ir_codes = &ir_codes_hauppauge_new_table;
|
||||
init_data.get_key = em28xx_get_key_em_haup;
|
||||
init_data.name = "i2c IR (EM2840 Hauppauge)";
|
||||
break;
|
||||
|
@ -409,7 +409,7 @@ struct em28xx_board {
|
||||
|
||||
struct em28xx_input input[MAX_EM28XX_INPUT];
|
||||
struct em28xx_input radio;
|
||||
IR_KEYTAB_TYPE *ir_codes;
|
||||
struct ir_scancode_table *ir_codes;
|
||||
};
|
||||
|
||||
struct em28xx_eeprom {
|
||||
|
@ -297,7 +297,7 @@ static void ir_work(struct work_struct *work)
|
||||
|
||||
static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
{
|
||||
IR_KEYTAB_TYPE *ir_codes = NULL;
|
||||
struct ir_scancode_table *ir_codes = NULL;
|
||||
const char *name = NULL;
|
||||
int ir_type;
|
||||
struct IR_i2c *ir;
|
||||
@ -322,13 +322,13 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
name = "Pixelview";
|
||||
ir->get_key = get_key_pixelview;
|
||||
ir_type = IR_TYPE_OTHER;
|
||||
ir_codes = ir_codes_empty;
|
||||
ir_codes = &ir_codes_empty_table;
|
||||
break;
|
||||
case 0x4b:
|
||||
name = "PV951";
|
||||
ir->get_key = get_key_pv951;
|
||||
ir_type = IR_TYPE_OTHER;
|
||||
ir_codes = ir_codes_pv951;
|
||||
ir_codes = &ir_codes_pv951_table;
|
||||
break;
|
||||
case 0x18:
|
||||
case 0x1a:
|
||||
@ -336,22 +336,22 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
ir->get_key = get_key_haup;
|
||||
ir_type = IR_TYPE_RC5;
|
||||
if (hauppauge == 1) {
|
||||
ir_codes = ir_codes_hauppauge_new;
|
||||
ir_codes = &ir_codes_hauppauge_new_table;
|
||||
} else {
|
||||
ir_codes = ir_codes_rc5_tv;
|
||||
ir_codes = &ir_codes_rc5_tv_table;
|
||||
}
|
||||
break;
|
||||
case 0x30:
|
||||
name = "KNC One";
|
||||
ir->get_key = get_key_knc1;
|
||||
ir_type = IR_TYPE_OTHER;
|
||||
ir_codes = ir_codes_empty;
|
||||
ir_codes = &ir_codes_empty_table;
|
||||
break;
|
||||
case 0x6b:
|
||||
name = "FusionHDTV";
|
||||
ir->get_key = get_key_fusionhdtv;
|
||||
ir_type = IR_TYPE_RC5;
|
||||
ir_codes = ir_codes_fusionhdtv_mce;
|
||||
ir_codes = &ir_codes_fusionhdtv_mce_table;
|
||||
break;
|
||||
case 0x7a:
|
||||
case 0x47:
|
||||
@ -365,9 +365,9 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
ir_type = IR_TYPE_RC5;
|
||||
ir->get_key = get_key_haup_xvr;
|
||||
if (hauppauge == 1) {
|
||||
ir_codes = ir_codes_hauppauge_new;
|
||||
ir_codes = &ir_codes_hauppauge_new_table;
|
||||
} else {
|
||||
ir_codes = ir_codes_rc5_tv;
|
||||
ir_codes = &ir_codes_rc5_tv_table;
|
||||
}
|
||||
} else {
|
||||
/* Handled by saa7134-input */
|
||||
@ -379,7 +379,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
name = "AVerMedia Cardbus remote";
|
||||
ir->get_key = get_key_avermedia_cardbus;
|
||||
ir_type = IR_TYPE_OTHER;
|
||||
ir_codes = ir_codes_avermedia_cardbus;
|
||||
ir_codes = &ir_codes_avermedia_cardbus_table;
|
||||
break;
|
||||
default:
|
||||
dprintk(1, DEVNAME ": Unsupported i2c address 0x%02x\n", addr);
|
||||
|
@ -394,7 +394,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
{
|
||||
struct card_ir *ir;
|
||||
struct input_dev *input_dev;
|
||||
IR_KEYTAB_TYPE *ir_codes = NULL;
|
||||
struct ir_scancode_table *ir_codes = NULL;
|
||||
u32 mask_keycode = 0;
|
||||
u32 mask_keydown = 0;
|
||||
u32 mask_keyup = 0;
|
||||
@ -416,27 +416,27 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_FLYTVPLATINUM_FM:
|
||||
case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
|
||||
case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM:
|
||||
ir_codes = ir_codes_flyvideo;
|
||||
ir_codes = &ir_codes_flyvideo_table;
|
||||
mask_keycode = 0xEC00000;
|
||||
mask_keydown = 0x0040000;
|
||||
break;
|
||||
case SAA7134_BOARD_CINERGY400:
|
||||
case SAA7134_BOARD_CINERGY600:
|
||||
case SAA7134_BOARD_CINERGY600_MK3:
|
||||
ir_codes = ir_codes_cinergy;
|
||||
ir_codes = &ir_codes_cinergy_table;
|
||||
mask_keycode = 0x00003f;
|
||||
mask_keyup = 0x040000;
|
||||
break;
|
||||
case SAA7134_BOARD_ECS_TVP3XP:
|
||||
case SAA7134_BOARD_ECS_TVP3XP_4CB5:
|
||||
ir_codes = ir_codes_eztv;
|
||||
ir_codes = &ir_codes_eztv_table;
|
||||
mask_keycode = 0x00017c;
|
||||
mask_keyup = 0x000002;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_KWORLD_XPERT:
|
||||
case SAA7134_BOARD_AVACSSMARTTV:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
mask_keycode = 0x00001F;
|
||||
mask_keyup = 0x000020;
|
||||
polling = 50; // ms
|
||||
@ -453,7 +453,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
|
||||
case SAA7134_BOARD_AVERMEDIA_M102:
|
||||
case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS:
|
||||
ir_codes = ir_codes_avermedia;
|
||||
ir_codes = &ir_codes_avermedia_table;
|
||||
mask_keycode = 0x0007C8;
|
||||
mask_keydown = 0x000010;
|
||||
polling = 50; // ms
|
||||
@ -462,14 +462,14 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4);
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_M135A:
|
||||
ir_codes = ir_codes_avermedia_m135a;
|
||||
ir_codes = &ir_codes_avermedia_m135a_table;
|
||||
mask_keydown = 0x0040000;
|
||||
mask_keycode = 0x00013f;
|
||||
nec_gpio = 1;
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_777:
|
||||
case SAA7134_BOARD_AVERMEDIA_A16AR:
|
||||
ir_codes = ir_codes_avermedia;
|
||||
ir_codes = &ir_codes_avermedia_table;
|
||||
mask_keycode = 0x02F200;
|
||||
mask_keydown = 0x000400;
|
||||
polling = 50; // ms
|
||||
@ -478,7 +478,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_A16D:
|
||||
ir_codes = ir_codes_avermedia_a16d;
|
||||
ir_codes = &ir_codes_avermedia_a16d_table;
|
||||
mask_keycode = 0x02F200;
|
||||
mask_keydown = 0x000400;
|
||||
polling = 50; /* ms */
|
||||
@ -487,14 +487,14 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
|
||||
break;
|
||||
case SAA7134_BOARD_KWORLD_TERMINATOR:
|
||||
ir_codes = ir_codes_pixelview;
|
||||
ir_codes = &ir_codes_pixelview_table;
|
||||
mask_keycode = 0x00001f;
|
||||
mask_keyup = 0x000060;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_MANLI_MTV001:
|
||||
case SAA7134_BOARD_MANLI_MTV002:
|
||||
ir_codes = ir_codes_manli;
|
||||
ir_codes = &ir_codes_manli_table;
|
||||
mask_keycode = 0x001f00;
|
||||
mask_keyup = 0x004000;
|
||||
polling = 50; /* ms */
|
||||
@ -513,25 +513,25 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_BEHOLD_507_9FM:
|
||||
case SAA7134_BOARD_BEHOLD_507RDS_MK3:
|
||||
case SAA7134_BOARD_BEHOLD_507RDS_MK5:
|
||||
ir_codes = ir_codes_manli;
|
||||
ir_codes = &ir_codes_manli_table;
|
||||
mask_keycode = 0x003f00;
|
||||
mask_keyup = 0x004000;
|
||||
polling = 50; /* ms */
|
||||
break;
|
||||
case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
|
||||
ir_codes = ir_codes_behold_columbus;
|
||||
ir_codes = &ir_codes_behold_columbus_table;
|
||||
mask_keycode = 0x003f00;
|
||||
mask_keyup = 0x004000;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
|
||||
ir_codes = ir_codes_pctv_sedna;
|
||||
ir_codes = &ir_codes_pctv_sedna_table;
|
||||
mask_keycode = 0x001f00;
|
||||
mask_keyup = 0x004000;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_GOTVIEW_7135:
|
||||
ir_codes = ir_codes_gotview7135;
|
||||
ir_codes = &ir_codes_gotview7135_table;
|
||||
mask_keycode = 0x0003CC;
|
||||
mask_keydown = 0x000010;
|
||||
polling = 5; /* ms */
|
||||
@ -540,75 +540,75 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_VIDEOMATE_TV_PVR:
|
||||
case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
|
||||
case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
|
||||
ir_codes = ir_codes_videomate_tv_pvr;
|
||||
ir_codes = &ir_codes_videomate_tv_pvr_table;
|
||||
mask_keycode = 0x00003F;
|
||||
mask_keyup = 0x400000;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_PROTEUS_2309:
|
||||
ir_codes = ir_codes_proteus_2309;
|
||||
ir_codes = &ir_codes_proteus_2309_table;
|
||||
mask_keycode = 0x00007F;
|
||||
mask_keyup = 0x000080;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_VIDEOMATE_DVBT_300:
|
||||
case SAA7134_BOARD_VIDEOMATE_DVBT_200:
|
||||
ir_codes = ir_codes_videomate_tv_pvr;
|
||||
ir_codes = &ir_codes_videomate_tv_pvr_table;
|
||||
mask_keycode = 0x003F00;
|
||||
mask_keyup = 0x040000;
|
||||
break;
|
||||
case SAA7134_BOARD_FLYDVBS_LR300:
|
||||
case SAA7134_BOARD_FLYDVBT_LR301:
|
||||
case SAA7134_BOARD_FLYDVBTDUO:
|
||||
ir_codes = ir_codes_flydvb;
|
||||
ir_codes = &ir_codes_flydvb_table;
|
||||
mask_keycode = 0x0001F00;
|
||||
mask_keydown = 0x0040000;
|
||||
break;
|
||||
case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
|
||||
case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
|
||||
case SAA7134_BOARD_ASUSTeK_P7131_ANALOG:
|
||||
ir_codes = ir_codes_asus_pc39;
|
||||
ir_codes = &ir_codes_asus_pc39_table;
|
||||
mask_keydown = 0x0040000;
|
||||
rc5_gpio = 1;
|
||||
break;
|
||||
case SAA7134_BOARD_ENCORE_ENLTV:
|
||||
case SAA7134_BOARD_ENCORE_ENLTV_FM:
|
||||
ir_codes = ir_codes_encore_enltv;
|
||||
ir_codes = &ir_codes_encore_enltv_table;
|
||||
mask_keycode = 0x00007f;
|
||||
mask_keyup = 0x040000;
|
||||
polling = 50; // ms
|
||||
break;
|
||||
case SAA7134_BOARD_ENCORE_ENLTV_FM53:
|
||||
ir_codes = ir_codes_encore_enltv_fm53;
|
||||
ir_codes = &ir_codes_encore_enltv_fm53_table;
|
||||
mask_keydown = 0x0040000;
|
||||
mask_keycode = 0x00007f;
|
||||
nec_gpio = 1;
|
||||
break;
|
||||
case SAA7134_BOARD_10MOONSTVMASTER3:
|
||||
ir_codes = ir_codes_encore_enltv;
|
||||
ir_codes = &ir_codes_encore_enltv_table;
|
||||
mask_keycode = 0x5f80000;
|
||||
mask_keyup = 0x8000000;
|
||||
polling = 50; //ms
|
||||
break;
|
||||
case SAA7134_BOARD_GENIUS_TVGO_A11MCE:
|
||||
ir_codes = ir_codes_genius_tvgo_a11mce;
|
||||
ir_codes = &ir_codes_genius_tvgo_a11mce_table;
|
||||
mask_keycode = 0xff;
|
||||
mask_keydown = 0xf00000;
|
||||
polling = 50; /* ms */
|
||||
break;
|
||||
case SAA7134_BOARD_REAL_ANGEL_220:
|
||||
ir_codes = ir_codes_real_audio_220_32_keys;
|
||||
ir_codes = &ir_codes_real_audio_220_32_keys_table;
|
||||
mask_keycode = 0x3f00;
|
||||
mask_keyup = 0x4000;
|
||||
polling = 50; /* ms */
|
||||
break;
|
||||
case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG:
|
||||
ir_codes = ir_codes_kworld_plus_tv_analog;
|
||||
ir_codes = &ir_codes_kworld_plus_tv_analog_table;
|
||||
mask_keycode = 0x7f;
|
||||
polling = 40; /* ms */
|
||||
break;
|
||||
case SAA7134_BOARD_VIDEOMATE_S350:
|
||||
ir_codes = ir_codes_videomate_s350;
|
||||
ir_codes = &ir_codes_videomate_s350_table;
|
||||
mask_keycode = 0x003f00;
|
||||
mask_keydown = 0x040000;
|
||||
break;
|
||||
@ -722,23 +722,23 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
|
||||
init_data.name = "Pinnacle PCTV";
|
||||
if (pinnacle_remote == 0) {
|
||||
init_data.get_key = get_key_pinnacle_color;
|
||||
init_data.ir_codes = ir_codes_pinnacle_color;
|
||||
init_data.ir_codes = &ir_codes_pinnacle_color_table;
|
||||
info.addr = 0x47;
|
||||
} else {
|
||||
init_data.get_key = get_key_pinnacle_grey;
|
||||
init_data.ir_codes = ir_codes_pinnacle_grey;
|
||||
init_data.ir_codes = &ir_codes_pinnacle_grey_table;
|
||||
info.addr = 0x47;
|
||||
}
|
||||
break;
|
||||
case SAA7134_BOARD_UPMOST_PURPLE_TV:
|
||||
init_data.name = "Purple TV";
|
||||
init_data.get_key = get_key_purpletv;
|
||||
init_data.ir_codes = ir_codes_purpletv;
|
||||
init_data.ir_codes = &ir_codes_purpletv_table;
|
||||
break;
|
||||
case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS:
|
||||
init_data.name = "MSI TV@nywhere Plus";
|
||||
init_data.get_key = get_key_msi_tvanywhere_plus;
|
||||
init_data.ir_codes = ir_codes_msi_tvanywhere_plus;
|
||||
init_data.ir_codes = &ir_codes_msi_tvanywhere_plus_table;
|
||||
info.addr = 0x30;
|
||||
/* MSI TV@nywhere Plus controller doesn't seem to
|
||||
respond to probes unless we read something from
|
||||
@ -752,7 +752,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_HAUPPAUGE_HVR1110:
|
||||
init_data.name = "HVR 1110";
|
||||
init_data.get_key = get_key_hvr1110;
|
||||
init_data.ir_codes = ir_codes_hauppauge_new;
|
||||
init_data.ir_codes = &ir_codes_hauppauge_new_table;
|
||||
break;
|
||||
case SAA7134_BOARD_BEHOLD_607FM_MK3:
|
||||
case SAA7134_BOARD_BEHOLD_607FM_MK5:
|
||||
@ -769,7 +769,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
|
||||
case SAA7134_BOARD_BEHOLD_X7:
|
||||
init_data.name = "BeholdTV";
|
||||
init_data.get_key = get_key_beholdm6xx;
|
||||
init_data.ir_codes = ir_codes_behold;
|
||||
init_data.ir_codes = &ir_codes_behold_table;
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_CARDBUS_501:
|
||||
case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
|
||||
|
@ -31,8 +31,18 @@
|
||||
#define IR_TYPE_PD 2 /* Pulse distance encoded IR */
|
||||
#define IR_TYPE_OTHER 99
|
||||
|
||||
#define IR_KEYTAB_TYPE u32
|
||||
#define IR_KEYTAB_SIZE 128 // enougth for rc5, probably need more some day ...
|
||||
#define IR_KEYTAB_TYPE u32
|
||||
#define IR_KEYTAB_SIZE 128 /* enougth for rc5, probably need more some day */
|
||||
|
||||
struct ir_scancode {
|
||||
u16 scancode;
|
||||
u32 keycode;
|
||||
};
|
||||
|
||||
struct ir_scancode_table {
|
||||
struct ir_scancode *scan;
|
||||
int size;
|
||||
};
|
||||
|
||||
#define IR_KEYCODE(tab,code) (((unsigned)code < IR_KEYTAB_SIZE) \
|
||||
? tab[code] : KEY_RESERVED)
|
||||
@ -93,7 +103,7 @@ struct card_ir {
|
||||
};
|
||||
|
||||
void ir_input_init(struct input_dev *dev, struct ir_input_state *ir,
|
||||
int ir_type, IR_KEYTAB_TYPE *ir_codes);
|
||||
int ir_type, struct ir_scancode_table *ir_codes);
|
||||
void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir);
|
||||
void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir,
|
||||
u32 ir_key, u32 ir_raw);
|
||||
@ -107,70 +117,63 @@ void ir_rc5_timer_keyup(unsigned long data);
|
||||
|
||||
/* Keymaps to be used by other modules */
|
||||
|
||||
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_avermedia_m135a[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_avermedia_cardbus[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pixelview_new[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];
|
||||
extern IR_KEYTAB_TYPE ir_codes_adstech_dvb_t_pci[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_avertv_303[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_dntv_live_dvbt_pro[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_em_terratec[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pinnacle_grey[IR_KEYTAB_SIZE];
|
||||
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_avermedia[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];
|
||||
extern IR_KEYTAB_TYPE ir_codes_gotview7135[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pctv_sedna[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE];
|
||||
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_color[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_npgtech[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_norwood[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_budget_ci_old[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_encore_enltv[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_encore_enltv2[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_tt_1500[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_fusionhdtv_mce[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_behold[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_behold_columbus[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_pinnacle_pctv_hd[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_genius_tvgo_a11mce[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_powercolor_real_angel[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_avermedia_a16d[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_encore_enltv_fm53[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_real_audio_220_32_keys[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_msi_tvanywhere_plus[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_ati_tv_wonder_hd_600[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_analog[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_evga_indtube[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_terratec_cinergy_xs[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_videomate_s350[IR_KEYTAB_SIZE];
|
||||
extern IR_KEYTAB_TYPE ir_codes_gadmei_rm008z[IR_KEYTAB_SIZE];
|
||||
|
||||
extern struct ir_scancode_table ir_codes_empty_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_dvbt_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_m135a_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_cardbus_table;
|
||||
extern struct ir_scancode_table ir_codes_apac_viewcomp_table;
|
||||
extern struct ir_scancode_table ir_codes_pixelview_table;
|
||||
extern struct ir_scancode_table ir_codes_pixelview_new_table;
|
||||
extern struct ir_scancode_table ir_codes_nebula_table;
|
||||
extern struct ir_scancode_table ir_codes_dntv_live_dvb_t_table;
|
||||
extern struct ir_scancode_table ir_codes_iodata_bctv7e_table;
|
||||
extern struct ir_scancode_table ir_codes_adstech_dvb_t_pci_table;
|
||||
extern struct ir_scancode_table ir_codes_msi_tvanywhere_table;
|
||||
extern struct ir_scancode_table ir_codes_cinergy_1400_table;
|
||||
extern struct ir_scancode_table ir_codes_avertv_303_table;
|
||||
extern struct ir_scancode_table ir_codes_dntv_live_dvbt_pro_table;
|
||||
extern struct ir_scancode_table ir_codes_em_terratec_table;
|
||||
extern struct ir_scancode_table ir_codes_pinnacle_grey_table;
|
||||
extern struct ir_scancode_table ir_codes_flyvideo_table;
|
||||
extern struct ir_scancode_table ir_codes_flydvb_table;
|
||||
extern struct ir_scancode_table ir_codes_cinergy_table;
|
||||
extern struct ir_scancode_table ir_codes_eztv_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_table;
|
||||
extern struct ir_scancode_table ir_codes_videomate_tv_pvr_table;
|
||||
extern struct ir_scancode_table ir_codes_manli_table;
|
||||
extern struct ir_scancode_table ir_codes_gotview7135_table;
|
||||
extern struct ir_scancode_table ir_codes_purpletv_table;
|
||||
extern struct ir_scancode_table ir_codes_pctv_sedna_table;
|
||||
extern struct ir_scancode_table ir_codes_pv951_table;
|
||||
extern struct ir_scancode_table ir_codes_rc5_tv_table;
|
||||
extern struct ir_scancode_table ir_codes_winfast_table;
|
||||
extern struct ir_scancode_table ir_codes_pinnacle_color_table;
|
||||
extern struct ir_scancode_table ir_codes_hauppauge_new_table;
|
||||
extern struct ir_scancode_table ir_codes_npgtech_table;
|
||||
extern struct ir_scancode_table ir_codes_norwood_table;
|
||||
extern struct ir_scancode_table ir_codes_proteus_2309_table;
|
||||
extern struct ir_scancode_table ir_codes_budget_ci_old_table;
|
||||
extern struct ir_scancode_table ir_codes_asus_pc39_table;
|
||||
extern struct ir_scancode_table ir_codes_encore_enltv_table;
|
||||
extern struct ir_scancode_table ir_codes_encore_enltv2_table;
|
||||
extern struct ir_scancode_table ir_codes_tt_1500_table;
|
||||
extern struct ir_scancode_table ir_codes_fusionhdtv_mce_table;
|
||||
extern struct ir_scancode_table ir_codes_behold_table;
|
||||
extern struct ir_scancode_table ir_codes_behold_columbus_table;
|
||||
extern struct ir_scancode_table ir_codes_pinnacle_pctv_hd_table;
|
||||
extern struct ir_scancode_table ir_codes_genius_tvgo_a11mce_table;
|
||||
extern struct ir_scancode_table ir_codes_powercolor_real_angel_table;
|
||||
extern struct ir_scancode_table ir_codes_avermedia_a16d_table;
|
||||
extern struct ir_scancode_table ir_codes_encore_enltv_fm53_table;
|
||||
extern struct ir_scancode_table ir_codes_real_audio_220_32_keys_table;
|
||||
extern struct ir_scancode_table ir_codes_msi_tvanywhere_plus_table;
|
||||
extern struct ir_scancode_table ir_codes_ati_tv_wonder_hd_600_table;
|
||||
extern struct ir_scancode_table ir_codes_kworld_plus_tv_analog_table;
|
||||
extern struct ir_scancode_table ir_codes_kaiomy_table;
|
||||
extern struct ir_scancode_table ir_codes_dm1105_nec_table;
|
||||
extern struct ir_scancode_table ir_codes_evga_indtube_table;
|
||||
extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table;
|
||||
extern struct ir_scancode_table ir_codes_videomate_s350_table;
|
||||
extern struct ir_scancode_table ir_codes_gadmei_rm008z_table;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* c-basic-offset: 8
|
||||
* End:
|
||||
*/
|
||||
|
@ -6,7 +6,8 @@
|
||||
struct IR_i2c;
|
||||
|
||||
struct IR_i2c {
|
||||
IR_KEYTAB_TYPE *ir_codes;
|
||||
struct ir_scancode_table *ir_codes;
|
||||
|
||||
struct i2c_client *c;
|
||||
struct input_dev *input;
|
||||
struct ir_input_state ir;
|
||||
@ -33,7 +34,7 @@ enum ir_kbd_get_key_fn {
|
||||
|
||||
/* Can be passed when instantiating an ir_video i2c device */
|
||||
struct IR_i2c_init_data {
|
||||
IR_KEYTAB_TYPE *ir_codes;
|
||||
struct ir_scancode_table *ir_codes;
|
||||
const char *name;
|
||||
int type; /* IR_TYPE_RC5, IR_TYPE_PD, etc */
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user