From: Sascha Sommer Date: Sat, 3 Nov 2007 19:48:01 +0000 (-0300) Subject: V4L/DVB (6540): em28xx: fix failing autodetection after the reboot X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2b2c93ac998896db0d2b754a4fd83479bda7efde;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (6540): em28xx: fix failing autodetection after the reboot The attached patch is required so that the autodetecion code also works after a reboot. Setting the I2C speed does not seem to be supported for em2800. Signed-off-by: Sascha Sommer Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 2529c298b862..d3dd6a0fc8a1 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c @@ -144,7 +144,8 @@ static int em28xx_config(struct em28xx *dev) { /* Sets I2C speed to 100 KHz */ - em28xx_write_regs_req(dev, 0x00, 0x06, "\x40", 1); + if (!dev->is_em2800) + em28xx_write_regs_req(dev, 0x00, 0x06, "\x40", 1); /* enable vbi capturing */