summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-04-14 07:55:31 +0000
committerPatrick Boettcher <devnull@localhost>2005-04-14 07:55:31 +0000
commit717a1066fcaa19eecb124fa58510e02dee4b4456 (patch)
treea312d8b6bc33028b0c5bad0f3a74130acfdfb2c7 /linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
parent093022513d03a4d1ff5cb399dea284016ad73e2b (diff)
downloadmediapointer-dvb-s2-717a1066fcaa19eecb124fa58510e02dee4b4456.tar.gz
mediapointer-dvb-s2-717a1066fcaa19eecb124fa58510e02dee4b4456.tar.bz2
on fast (or slow) machines it is important for some devices to delay the actual read on a read operation
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
index 80b3ff91f..e5bff4157 100644
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
@@ -39,6 +39,9 @@ int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf,
/* an answer is expected, and no error before */
if (!ret && rbuf && rlen) {
+ if (d->props.rw_delay_ms)
+ msleep(d->props.rw_delay_ms);
+
ret = usb_bulk_msg(d->udev,usb_rcvbulkpipe(d->udev,
d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen,
2*HZ);