[PATCH 3/6] gspca - gl860: USB control message delay unification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gspca - gl860: USB control message delay unification

From: Olivier Lorin <o.lorin@xxxxxxxxxxx>

- 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.

Priority: normal

Signed-off-by: Olivier Lorin <o.lorin@xxxxxxxxxxx>

diff -urpN i2/gl860.c gl860/gl860.c
--- i2/gl860.c	2010-06-01 23:11:26.000000000 +0200
+++ gl860/gl860.c	2010-06-01 23:16:59.000000000 +0200
@@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_de
 	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;
 }


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux