Skip to content

Commit

Permalink
V4L/DVB (8818): gspca: Reinitialize the device on resume.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent 65f3339 commit 1e89e2d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,9 +1838,12 @@ int gspca_resume(struct usb_interface *intf)
struct gspca_dev *gspca_dev = usb_get_intfdata(intf);

gspca_dev->frozen = 0;
if (!gspca_dev->streaming)
return 0;
return gspca_init_transfer(gspca_dev);
if (gspca_dev->users != 0) {
gspca_dev->sd_desc->open(gspca_dev);
if (gspca_dev->streaming)
return gspca_init_transfer(gspca_dev);
}
return 0;
}
EXPORT_SYMBOL(gspca_resume);
#endif
Expand Down

0 comments on commit 1e89e2d

Please sign in to comment.