aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorDevin Heitmueller <devin.heitmueller@gmail.com>2008-04-17 20:41:23 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:41 -0400
commit7640ea99339c687864f6131598e2eee2ca73cb9c (patch)
tree15f2c7257437fbfca5560d4c6b2eb2637c45e4eb /drivers/media/video/em28xx
parent83244025e70aadd7e8baad520decf5d53d534d8f (diff)
V4L/DVB (7609): em28xx-core: speed-up firmware load
em28xx-core.c: - Remove sleep in i2c message routine which slows down i2c by a factor 10x. Load time for BASE firmware went from 13s to .973s Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index a742a57d3979..9cbc4788090c 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -153,7 +153,6 @@ int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf,
153 ret = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), req, 153 ret = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), req,
154 USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 154 USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
155 0x0000, reg, bufs, len, HZ); 155 0x0000, reg, bufs, len, HZ);
156 msleep(5); /* FIXME: magic number */
157 kfree(bufs); 156 kfree(bufs);
158 return ret; 157 return ret;
159} 158}