Em 20-04-2012 05:08, nibble.max escreveu: > 2012-04-20 16:02:41 nibble.max@xxxxxxxxx >> Em 15-04-2012 12:53, nibble.max escreveu: >>> +static struct dvb_usb_device_properties US6830_properties = { >>> + .caps = DVB_USB_IS_AN_I2C_ADAPTER, >>> + .usb_ctrl = DEVICE_SPECIFIC, >>> + .size_of_priv = sizeof(struct su3000_state), >>> + .power_ctrl = su3000_power_ctrl, >>> + .num_adapters = 1, >>> + .identify_state = su3000_identify_state, >>> + .i2c_algo = &su3000_i2c_algo, >>> + >>> + .rc.legacy = { >>> + .rc_map_table = rc_map_su3000_table, >>> + .rc_map_size = ARRAY_SIZE(rc_map_su3000_table), >>> + .rc_interval = 150, >>> + .rc_query = dw2102_rc_query, >>> + }, >> >> >> New drivers should use .rc.core instead. For a simple example on how to use, >> please take a look at the az6007 driver. >> > It is strange to me that I need write two keymaps for one remote controller, one for USB box, the other for pcie cards. > rc.core will save my time to keep one keymap for all. :) > One remote controller just needs one keymap file. If the same IR requires two different tables, then something is wrong at the get_key function (or, for drivers where only the lower 8bits are returned - the IR mask is not properly set). Regards, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html