summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2006-02-05 22:31:43 +0100
committerMarkus Rechberger <mrechberger@gmail.com>2006-02-05 22:31:43 +0100
commitef38c7c3bfd2cc5a3292a221b8cddeb0a7a5405c (patch)
tree699c3f70b3c6b49071b15db476ac6a0ef23cd9f5 /linux/drivers
parent74c650dc5c20cd5f4a80dd9a5bb897f6aa169951 (diff)
downloadmediapointer-dvb-s2-ef38c7c3bfd2cc5a3292a221b8cddeb0a7a5405c.tar.gz
mediapointer-dvb-s2-ef38c7c3bfd2cc5a3292a221b8cddeb0a7a5405c.tar.bz2
Fixed em28xx based system lockup
From: Markus Rechberger <mrechberger@gmail.com> 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>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c
index 59c009505..31d9ad894 100644
--- a/linux/drivers/media/video/em28xx/em28xx-video.c
+++ b/linux/drivers/media/video/em28xx/em28xx-video.c
@@ -453,12 +453,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++;