summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 3d254cd19..7074dc469 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -203,8 +203,8 @@ static const uint32_t rc_keys [] = {
};
static int cinergyt2_command (struct cinergyt2 *cinergyt2,
- char *send_buf, int send_buf_len,
- char *rec_buf, int rec_buf_len)
+ char *send_buf, int send_buf_len,
+ char *recv_buf, int recv_buf_len)
{
int actual_len;
char dummy;
@@ -216,11 +216,11 @@ static int cinergyt2_command (struct cinergyt2 *cinergyt2,
if (ret)
dprintk(1, "usb_bulk_msg (send) failed, err %i\n", ret);
- if (!rec_buf)
- rec_buf = &dummy;
+ if (!recv_buf)
+ recv_buf = &dummy;
ret = usb_bulk_msg(cinergyt2->udev, usb_rcvbulkpipe(cinergyt2->udev, 1),
- rec_buf, rec_buf_len, &actual_len, HZ);
+ recv_buf, recv_buf_len, &actual_len, HZ);
if (ret)
dprintk(1, "usb_bulk_msg (read) failed, err %i\n", ret);
@@ -772,6 +772,7 @@ static int cinergyt2_probe (struct usb_interface *intf,
INIT_WORK(&cinergyt2->query_work, cinergyt2_query, cinergyt2);
cinergyt2->udev = interface_to_usbdev(intf);
+ cinergyt2->param.cmd = CINERGYT2_EP1_SET_TUNER_PARAMETERS;
if (cinergyt2_alloc_stream_urbs (cinergyt2) < 0) {
dprintk(1, "unable to allocate stream urbs\n");