summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/stk1135.c
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2013-11-02 21:09:07 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-11-29 12:03:16 -0200
commit4fd1fb7af5c19ccfc1dba66ba7ffaf0fb3be6ee1 (patch)
treea2c2919ede2ee304bd7933006e1943fdc15d2656 /drivers/media/usb/gspca/stk1135.c
parentb317828beec632791a440a677de5116ab9bd900a (diff)
downloadlinux-4fd1fb7af5c19ccfc1dba66ba7ffaf0fb3be6ee1.tar.gz
linux-4fd1fb7af5c19ccfc1dba66ba7ffaf0fb3be6ee1.tar.xz
[media] gspca-stk1135: Add delay after configuring clock
Add a small delay at the end of configure_clock() to allow sensor to initialize. This is needed by Asus VX2S laptop webcam to detect sensor type properly (the already-supported MT9M112). Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/gspca/stk1135.c')
-rw-r--r--drivers/media/usb/gspca/stk1135.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/gspca/stk1135.c b/drivers/media/usb/gspca/stk1135.c
index 1fc80af2a189..48234c9a8b6c 100644
--- a/drivers/media/usb/gspca/stk1135.c
+++ b/drivers/media/usb/gspca/stk1135.c
@@ -361,6 +361,9 @@ static void stk1135_configure_clock(struct gspca_dev *gspca_dev)
/* set serial interface clock divider (30MHz/0x1f*16+2) = 60240 kHz) */
reg_w(gspca_dev, STK1135_REG_SICTL + 2, 0x1f);
+
+ /* wait a while for sensor to catch up */
+ udelay(1000);
}
static void stk1135_camera_disable(struct gspca_dev *gspca_dev)