V4L/DVB: usbvision: add delay before detecting the saa711x
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 2 May 2010 12:29:27 +0000 (09:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:58 +0000 (12:58 -0300)
The detection of the saa711x often failed. Adding a small delay before
attempting to detect it fixed this.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/usbvision/usbvision-i2c.c

index 083765238a6a5d9a34e45df6bd3a9337459b0b34..42ba2878575045dd8a00e4090a1a7615f4ab06e9 100644 (file)
@@ -244,6 +244,9 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision)
        switch (usbvision_device_data[usbvision->DevModel].Codec) {
        case CODEC_SAA7113:
        case CODEC_SAA7111:
+               /* Without this delay the detection of the saa711x is
+                  hit-and-miss. */
+               mdelay(10);
                v4l2_i2c_new_subdev(&usbvision->v4l2_dev,
                                &usbvision->i2c_adap, "saa7115",
                                "saa7115_auto", 0, saa711x_addrs);