Skip to content

Commit

Permalink
[media] lmedm04: change USB Timeouts to avoid troubles
Browse files Browse the repository at this point in the history
DM04/QQBOX USB Timing change.

Improved timing to avoid USB corruptions on some systems.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Malcolm Priestley authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent afcd080 commit 25ad984
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/dvb/dvb-usb/lmedm04.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int lme2510_bulk_write(struct usb_device *dev,
int ret, actual_l;

ret = usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe),
snd, len , &actual_l, 500);
snd, len , &actual_l, 100);
return ret;
}

Expand All @@ -134,7 +134,7 @@ static int lme2510_bulk_read(struct usb_device *dev,
int ret, actual_l;

ret = usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe),
rev, len , &actual_l, 500);
rev, len , &actual_l, 200);
return ret;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ static int lme2510_usb_talk(struct dvb_usb_device *d,

ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01);

msleep(12);
msleep(10);

ret |= usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x01));

Expand Down Expand Up @@ -1073,5 +1073,5 @@ module_exit(lme2510_module_exit);

MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
MODULE_DESCRIPTION("LM2510(C) DVB-S USB2.0");
MODULE_VERSION("1.70");
MODULE_VERSION("1.71");
MODULE_LICENSE("GPL");

0 comments on commit 25ad984

Please sign in to comment.