]> Pileus Git - ~andy/linux/commitdiff
V4L/DVB: gspca - gl860: USB control message delay unification
authorOlivier Lorin <o.lorin@laposte.net>
Thu, 24 Jun 2010 07:26:20 +0000 (04:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:49:54 +0000 (14:49 -0300)
- 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>
drivers/media/video/gspca/gl860/gl860.c

index 8f15a58d97c2f908582961c16eee20055f7b4916..b59c4823c444fe7d526077911b5458645fda1eb9 100644 (file)
@@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_dev,
        else if (len > 1 && r < len)
                PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);
 
-       if (_MI2020_ && (val || index))
-               msleep(1);
-       if (_OV2640_)
-               msleep(1);
+       msleep(1);
 
        return r;
 }