summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dtt200u.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-04-27 12:45:28 +0000
committerPatrick Boettcher <devnull@localhost>2005-04-27 12:45:28 +0000
commit284f6a87e6612f7025766e5ba0b2470102ab9842 (patch)
tree3e41c48e7b3fea435a5a2846fdb770935f79e46a /linux/drivers/media/dvb/dvb-usb/dtt200u.c
parent129880a6df432ecd06fbe5a1ed773683b719fc83 (diff)
downloadmediapointer-dvb-s2-284f6a87e6612f7025766e5ba0b2470102ab9842.tar.gz
mediapointer-dvb-s2-284f6a87e6612f7025766e5ba0b2470102ab9842.tar.bz2
- removed the field which specified the delay between the two transfer of a read operation (not unused, didn't help)
- correct the maximal number of feed for each device (up to now it was always 255 even if the device was only able to handle 16 pids) - added preliminary remote control support for the AVerTV USB2 A800 - changed the remote-control-struct for the NEC-protocol
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dtt200u.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dtt200u.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dtt200u.c b/linux/drivers/media/dvb/dvb-usb/dtt200u.c
index ebe6b4ea8..b529c06e0 100644
--- a/linux/drivers/media/dvb/dvb-usb/dtt200u.c
+++ b/linux/drivers/media/dvb/dvb-usb/dtt200u.c
@@ -44,31 +44,31 @@ static int dtt200u_pid_filter(struct dvb_usb_device *d, int index, u16 pid, int
/* remote control */
/* key list for the tiny remote control (Yakumo, don't know about the others) */
static struct dvb_usb_nec_rc_key dtt200u_rc_keys[] = {
- { 0x80, 0x7f, 0x01, KEY_MUTE },
- { 0x80, 0x7f, 0x02, KEY_CHANNELDOWN },
- { 0x80, 0x7f, 0x03, KEY_VOLUMEDOWN },
- { 0x80, 0x7f, 0x04, KEY_1 },
- { 0x80, 0x7f, 0x05, KEY_2 },
- { 0x80, 0x7f, 0x06, KEY_3 },
- { 0x80, 0x7f, 0x07, KEY_4 },
- { 0x80, 0x7f, 0x08, KEY_5 },
- { 0x80, 0x7f, 0x09, KEY_6 },
- { 0x80, 0x7f, 0x0a, KEY_7 },
- { 0x00, 0xff, 0x0c, KEY_ZOOM },
- { 0x80, 0x7f, 0x0d, KEY_0 },
- { 0x00, 0xff, 0x0e, KEY_SELECT },
- { 0x80, 0x7f, 0x12, KEY_POWER },
- { 0x80, 0x7f, 0x1a, KEY_CHANNELUP },
- { 0x80, 0x7f, 0x1b, KEY_8 },
- { 0x80, 0x7f, 0x1e, KEY_VOLUMEUP },
- { 0x80, 0x7f, 0x1f, KEY_9 },
+ { 0x80, 0x01, KEY_MUTE },
+ { 0x80, 0x02, KEY_CHANNELDOWN },
+ { 0x80, 0x03, KEY_VOLUMEDOWN },
+ { 0x80, 0x04, KEY_1 },
+ { 0x80, 0x05, KEY_2 },
+ { 0x80, 0x06, KEY_3 },
+ { 0x80, 0x07, KEY_4 },
+ { 0x80, 0x08, KEY_5 },
+ { 0x80, 0x09, KEY_6 },
+ { 0x80, 0x0a, KEY_7 },
+ { 0x00, 0x0c, KEY_ZOOM },
+ { 0x80, 0x0d, KEY_0 },
+ { 0x00, 0x0e, KEY_SELECT },
+ { 0x80, 0x12, KEY_POWER },
+ { 0x80, 0x1a, KEY_CHANNELUP },
+ { 0x80, 0x1b, KEY_8 },
+ { 0x80, 0x1e, KEY_VOLUMEUP },
+ { 0x80, 0x1f, KEY_9 },
};
static int dtt200u_rc_init(struct dvb_usb_device *d)
{
int i;
for (i = 0; i < sizeof(dtt200u_rc_keys)/sizeof(struct dvb_usb_nec_rc_key); i++)
- set_bit(dtt200u_rc_keys[i].key, d->rc_input_dev.keybit);
+ set_bit(dtt200u_rc_keys[i].event, d->rc_input_dev.keybit);
return 0;
}
@@ -106,6 +106,7 @@ MODULE_DEVICE_TABLE(usb, dtt200u_usb_table);
static struct dvb_usb_properties dtt200u_properties = {
.caps = DVB_USB_HAS_PID_FILTER | DVB_USB_NEED_PID_FILTERING,
+ .pid_filter_count = 255, /* It is a guess, but there are at least 10 */
.usb_ctrl = CYPRESS_FX2,
.firmware = "dvb-usb-dtt200u-01.fw",
@@ -121,7 +122,6 @@ static struct dvb_usb_properties dtt200u_properties = {
.init_rc = dtt200u_rc_init,
.generic_bulk_ctrl_endpoint = 0x01,
- .rw_delay_ms = 50,
/* parameter for the MPEG2-data transfer */
.urb = {