]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6540): em28xx: fix failing autodetection after the reboot
authorSascha Sommer <saschasommer@freenet.de>
Sat, 3 Nov 2007 19:48:01 +0000 (16:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 11 Dec 2007 20:08:02 +0000 (18:08 -0200)
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 <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-video.c

index 2529c298b862a4c80c83404894783af34ca4534a..d3dd6a0fc8a171aa73d832258361b739ba0c3b3b 100644 (file)
@@ -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 */