Commit 4d6c871a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB: usbvision: add delay before detecting the saa711x

The detection of the saa711x often failed. Adding a small delay before
attempting to detect it fixed this.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent aeb506aa
...@@ -244,6 +244,9 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision) ...@@ -244,6 +244,9 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision)
switch (usbvision_device_data[usbvision->DevModel].Codec) { switch (usbvision_device_data[usbvision->DevModel].Codec) {
case CODEC_SAA7113: case CODEC_SAA7113:
case CODEC_SAA7111: case CODEC_SAA7111:
/* Without this delay the detection of the saa711x is
hit-and-miss. */
mdelay(10);
v4l2_i2c_new_subdev(&usbvision->v4l2_dev, v4l2_i2c_new_subdev(&usbvision->v4l2_dev,
&usbvision->i2c_adap, "saa7115", &usbvision->i2c_adap, "saa7115",
"saa7115_auto", 0, saa711x_addrs); "saa7115_auto", 0, saa711x_addrs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment