Skip to content

Commit

Permalink
V4L/DVB (3314): Fixed em28xx based system lockup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Rechberger authored and Mauro Carvalho Chehab committed Feb 7, 2006
1 parent 21d0654 commit e5d4a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit e5d4a56

Please sign in to comment.