diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-05-02 08:29:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:58:58 -0400 |
commit | 4d6c871ac338a8d804a1139dade2a463614d3e34 (patch) | |
tree | fb917fc91c1ae7d604cf8cd70c02b86a7c29abab /drivers/media | |
parent | aeb506aaaa08bc1910650666463843a73c34b139 (diff) |
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: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c index 083765238a6a..42ba28785750 100644 --- a/drivers/media/video/usbvision/usbvision-i2c.c +++ b/drivers/media/video/usbvision/usbvision-i2c.c | |||
@@ -244,6 +244,9 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision) | |||
244 | switch (usbvision_device_data[usbvision->DevModel].Codec) { | 244 | switch (usbvision_device_data[usbvision->DevModel].Codec) { |
245 | case CODEC_SAA7113: | 245 | case CODEC_SAA7113: |
246 | case CODEC_SAA7111: | 246 | case CODEC_SAA7111: |
247 | /* Without this delay the detection of the saa711x is | ||
248 | hit-and-miss. */ | ||
249 | mdelay(10); | ||
247 | v4l2_i2c_new_subdev(&usbvision->v4l2_dev, | 250 | v4l2_i2c_new_subdev(&usbvision->v4l2_dev, |
248 | &usbvision->i2c_adap, "saa7115", | 251 | &usbvision->i2c_adap, "saa7115", |
249 | "saa7115_auto", 0, saa711x_addrs); | 252 | "saa7115_auto", 0, saa711x_addrs); |