Commit ccbc3cf2 authored by Olivier Lorin's avatar Olivier Lorin Committed by Mauro Carvalho Chehab

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: default avatarOlivier Lorin <o.lorin@laposte.net>
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a13ee1dd
...@@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_dev, ...@@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_dev,
else if (len > 1 && r < len) else if (len > 1 && r < len)
PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len); PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);
if (_MI2020_ && (val || index)) msleep(1);
msleep(1);
if (_OV2640_)
msleep(1);
return r; return r;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment