aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gl860/gl860.c
diff options
context:
space:
mode:
authorOlivier Lorin <o.lorin@laposte.net>2010-06-24 03:26:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 13:49:54 -0400
commitccbc3cf22c8cad16ca3b17084e26e382c4e983f0 (patch)
tree933e23d801340d7cb6098f20ddef56c1af16ec99 /drivers/media/video/gspca/gl860/gl860.c
parenta13ee1dd5b7aeff73f80a2f6451af2690c901522 (diff)
V4L/DVB: gspca - gl860: USB control message delay unification
- 1 ms "msleep" applied to each sensor after USB control data exchange This was done for two sensors because these exchanges were known to be too quick depending on laptop model. It is fairly logical to apply this delay to each sensor in order to prevent from having errors with untested hardwares. Signed-off-by: Olivier Lorin <o.lorin@laposte.net> Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gl860/gl860.c')
-rw-r--r--drivers/media/video/gspca/gl860/gl860.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/gl860/gl860.c b/drivers/media/video/gspca/gl860/gl860.c
index 8f15a58d97c2..b59c4823c444 100644
--- a/drivers/media/video/gspca/gl860/gl860.c
+++ b/drivers/media/video/gspca/gl860/gl860.c
@@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_dev,
595 else if (len > 1 && r < len) 595 else if (len > 1 && r < len)
596 PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len); 596 PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);
597 597
598 if (_MI2020_ && (val || index)) 598 msleep(1);
599 msleep(1);
600 if (_OV2640_)
601 msleep(1);
602 599
603 return r; 600 return r;
604} 601}