summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-03 20:48:01 +0100
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-03 20:48:01 +0100
commit539862473c667948283ee5e7e5237ac7191010c6 (patch)
tree9c1b52cbe506ddc14e47952042738698b41e6884 /linux/drivers/media
parent62af2ba09181e8b6c7db6fc777770860ae7674b5 (diff)
downloadmediapointer-dvb-s2-539862473c667948283ee5e7e5237ac7191010c6.tar.gz
mediapointer-dvb-s2-539862473c667948283ee5e7e5237ac7191010c6.tar.bz2
em28xx: fix failing autodetection after the reboot
From: Sascha Sommer <saschasommer@freenet.de> 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>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c
index 7ebd69aa0..05a931aeb 100644
--- a/linux/drivers/media/video/em28xx/em28xx-video.c
+++ b/linux/drivers/media/video/em28xx/em28xx-video.c
@@ -155,7 +155,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);
#if 1
/* enable vbi capturing */