提交 77c2402d 编写于 作者: M Malcolm Priestley 提交者: Mauro Carvalho Chehab

[media] lmedm04 v1.98 Remove clear halt

These were in the original lme2510 device driver.

Removing them significantly speeds up the driver.

All tuners tested.
Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 3caaa201
...@@ -177,12 +177,8 @@ static int lme2510_usb_talk(struct dvb_usb_device *d, ...@@ -177,12 +177,8 @@ static int lme2510_usb_talk(struct dvb_usb_device *d,
/* the read/write capped at 64 */ /* the read/write capped at 64 */
memcpy(buff, wbuf, (wlen < 64) ? wlen : 64); memcpy(buff, wbuf, (wlen < 64) ? wlen : 64);
ret |= usb_clear_halt(d->udev, usb_sndbulkpipe(d->udev, 0x01));
ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01); ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01);
ret |= usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x01));
ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ? ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ?
rlen : 64 , 0x01); rlen : 64 , 0x01);
...@@ -1290,5 +1286,5 @@ module_usb_driver(lme2510_driver); ...@@ -1290,5 +1286,5 @@ module_usb_driver(lme2510_driver);
MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0"); MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0");
MODULE_VERSION("1.97"); MODULE_VERSION("1.98");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册