Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144783
b: refs/heads/master
c: 7564f67
h: refs/heads/master
i:
  144781: 9ccbea3
  144779: ba99642
  144775: 8d63a1d
  144767: 34d124d
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 9, 2009
1 parent 357ef1b commit 1873879
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34a7864db1bc6d9ceb466251957fccf90c7106f8
refs/heads/master: 7564f67d5b38eb814e67edd8ba0c70fd8eb475b6
9 changes: 6 additions & 3 deletions trunk/drivers/media/video/uvc/uvc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,14 +1726,17 @@ static int uvc_suspend(struct usb_interface *intf, pm_message_t message)
static int __uvc_resume(struct usb_interface *intf, int reset)
{
struct uvc_device *dev = usb_get_intfdata(intf);
int ret;

uvc_trace(UVC_TRACE_SUSPEND, "Resuming interface %u\n",
intf->cur_altsetting->desc.bInterfaceNumber);

if (intf->cur_altsetting->desc.bInterfaceSubClass == SC_VIDEOCONTROL) {
if (reset && (ret = uvc_ctrl_resume_device(dev)) < 0)
return ret;
if (reset) {
int ret = uvc_ctrl_resume_device(dev);

if (ret < 0)
return ret;
}

return uvc_status_resume(dev);
}
Expand Down

0 comments on commit 1873879

Please sign in to comment.