aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2006-02-07 06:49:13 -0200
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-02-07 06:49:13 -0200
commite5d4a56d5d824e4dfe7d065d0fedb02e63952710 (patch)
treed74a55f6a7ca0327308aa60c638fec8b61d7016f /drivers/media/video/em28xx
parentV4L/DVB (3313): FIX: Check if FW was downloaded or not + new firmware file (diff)
downloadlinux-dev-e5d4a56d5d824e4dfe7d065d0fedb02e63952710.tar.xz
linux-dev-e5d4a56d5d824e4dfe7d065d0fedb02e63952710.zip
V4L/DVB (3314): Fixed em28xx based system lockup
Fixed em28xx based system lockup, device needs to be initialized before starting the isoc transfer otherwise the system will completly lock up. Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 1726b2c26b6c..1c1557d9bace 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -383,12 +383,14 @@ static int em28xx_v4l2_open(struct inode *inode, struct file *filp)
em28xx_capture_start(dev, 1);
em28xx_resolution_set(dev);
+ /* device needs to be initialized before isoc transfer */
+ video_mux(dev, 0);
+
/* start the transfer */
errCode = em28xx_init_isoc(dev);
if (errCode)
goto err;
- video_mux(dev, 0);
}
dev->users++;