Skip to content
Snippets Groups Projects
Commit 1e89e2da authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (8818): gspca: Reinitialize the device on resume.

parent 65f33396
No related branches found
No related tags found
No related merge requests found
...@@ -1838,9 +1838,12 @@ int gspca_resume(struct usb_interface *intf) ...@@ -1838,9 +1838,12 @@ int gspca_resume(struct usb_interface *intf)
struct gspca_dev *gspca_dev = usb_get_intfdata(intf); struct gspca_dev *gspca_dev = usb_get_intfdata(intf);
gspca_dev->frozen = 0; gspca_dev->frozen = 0;
if (!gspca_dev->streaming) if (gspca_dev->users != 0) {
return 0; gspca_dev->sd_desc->open(gspca_dev);
return gspca_init_transfer(gspca_dev); if (gspca_dev->streaming)
return gspca_init_transfer(gspca_dev);
}
return 0;
} }
EXPORT_SYMBOL(gspca_resume); EXPORT_SYMBOL(gspca_resume);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment