20 #define deb_rc(args...) dprintk(debug,0x01,args)
21 #define deb_ee(args...) dprintk(debug,0x02,args)
87 raw = ((key[1] << 8) | key[2]) >> 3;
88 toggle = !!(raw & 0x800);
90 custom = (raw >> 6) & 0x1f;
92 deb_rc(
"raw key code 0x%02x, 0x%02x, 0x%02x to c: %02x d: %02x toggle: %d\n",key[1],key[2],key[3],custom,
data,toggle);
94 for (i = 0; i <
ARRAY_SIZE(rc_map_haupp_table); i++) {
95 if (rc5_data(&rc_map_haupp_table[i]) ==
data &&
96 rc5_custom(&rc_map_haupp_table[i]) ==
custom) {
98 deb_rc(
"c: %x, d: %x\n", rc5_data(&rc_map_haupp_table[i]),
99 rc5_custom(&rc_map_haupp_table[i]));
101 *
event = rc_map_haupp_table[
i].
keycode;
133 for (i = 136; i < 139; i++) {
136 mac[5 - (i - 136)] = b;
164 .firmware =
"dvb-usb-nova-t-usb2-02.fw",
172 .pid_filter_count = 32,
198 .read_mac_address = nova_t_read_mac_address,
202 .rc_map_table = rc_map_haupp_table,
203 .rc_map_size =
ARRAY_SIZE(rc_map_haupp_table),
204 .rc_query = nova_t_rc_query,
209 .generic_bulk_ctrl_endpoint = 0x01,
211 .num_device_descs = 1,
213 {
"Hauppauge WinTV-NOVA-T usb2",
214 { &nova_t_table[0],
NULL },
215 { &nova_t_table[1],
NULL },
221 static struct usb_driver nova_t_driver = {
222 .name =
"dvb_usb_nova_t_usb2",
223 .probe = nova_t_probe,
225 .id_table = nova_t_table,