[media] gspca - ov534/ov534_9: Fix sccd_read/write errors

The ov534 bridge is too slow to handle the sensor accesses
requested by fast hosts giving 'sccb_reg_write failed'.
A small delay fixes the problem.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Jean-Francois Moine 2012-05-28 14:04:07 -03:00 committed by Mauro Carvalho Chehab
parent af05ef01e9
commit f19ed98111
2 changed files with 2 additions and 0 deletions

View File

@ -851,6 +851,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev)
int i;
for (i = 0; i < 5; i++) {
msleep(10);
data = ov534_reg_read(gspca_dev, OV534_REG_STATUS);
switch (data) {

View File

@ -1008,6 +1008,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev)
int i;
for (i = 0; i < 5; i++) {
msleep(10);
data = reg_r(gspca_dev, OV534_REG_STATUS);
switch (data) {