mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 23:23:18 +00:00
V4L/DVB (8818): gspca: Reinitialize the device on resume.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
65f33396ab
commit
1e89e2da48
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue