summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/a800.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/a800.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/a800.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/a800.c b/linux/drivers/media/dvb/dvb-usb/a800.c
index a0e24d223..9e8526c2d 100644
--- a/linux/drivers/media/dvb/dvb-usb/a800.c
+++ b/linux/drivers/media/dvb/dvb-usb/a800.c
@@ -1,7 +1,7 @@
/* DVB USB framework compliant Linux driver for the AVerMedia AverTV DVB-T
* USB2.0 (A800) DVB-T receiver.
*
- * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de)
+ * Copyright (C) 2005 Patrick Boettcher (patrick.boettcher@desy.de)
*
* Thanks to
* - AVerMedia who kindly provided information and
@@ -22,6 +22,7 @@ MODULE_PARM_DESC(debug, "set debugging level (rc=1 (or-able))." DVB_USB_DEBUG_ST
static int a800_power_ctrl(struct dvb_usb_device *d, int onoff)
{
+ /* do nothing for the AVerMedia */
return 0;
}
@@ -62,17 +63,6 @@ static struct dvb_usb_rc_key a800_rc_keys[] = {
{ 0x02, 0x15, KEY_MENU }, /* MENU */
};
-/*1. Make a vendor request with the following parameters:
- * Request = 0x04
- * Index = 0;
- * Value = 0;
- * TransferBufferLength = 5;
- * TransferBuffer = TransferBufferPointer;
- *
- *2. Send the command to the A800 device, then you can get 5 bytes of data back:
- * Control byte | custom code | ~custom code | data code | ~data code
- * Control byte: 0x00: no data 0x01: data is available 0x02: repeat (repeat the previous valid data)
- */
int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{
u8 key[5];
@@ -125,7 +115,7 @@ static struct dvb_usb_properties a800_properties = {
.rc_interval = DEFAULT_RC_INTERVAL,
.rc_key_map = a800_rc_keys,
.rc_key_map_size = ARRAY_SIZE(a800_rc_keys),
- .query_rc = a800_rc_query,
+ .rc_query = a800_rc_query,
.i2c_algo = &dibusb_i2c_algo,