diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-12-21 14:17:42 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 23:26:40 (GMT) |
commit | 38e91c6b1279b8ba5e798d35d5647b38f3ae66ea (patch) | |
tree | caf1e7c7fb7a2d18dbc7b940f6669ec1ac92ebd1 /drivers/media | |
parent | 2756442e48ab5012b135b9304133d4bc0ebffb17 (diff) | |
download | linux-fsl-qoriq-38e91c6b1279b8ba5e798d35d5647b38f3ae66ea.tar.xz |
[media] gspca_sonixj: Add a small delay after i2c_w1
We already have the same delay in i2c_w8, but it was missing from i2c_w1,
adding this delay fixes the Microsoft VX-3000 camera often (but not always)
streaming video data with a very green-ish tint.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/gspca/sonixj.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/gspca/sonixj.c b/drivers/media/usb/gspca/sonixj.c index 5a86047..36307a9 100644 --- a/drivers/media/usb/gspca/sonixj.c +++ b/drivers/media/usb/gspca/sonixj.c @@ -1550,6 +1550,7 @@ static void i2c_w1(struct gspca_dev *gspca_dev, u8 reg, u8 val) 0, gspca_dev->usb_buf, 8, 500); + msleep(2); if (ret < 0) { pr_err("i2c_w1 err %d\n", ret); gspca_dev->usb_err = ret; |