Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1838,10 +1838,13 @@ 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;
	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
/* -- cam driver utility functions -- */