Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331083
b: refs/heads/master
c: 8ac4564
h: refs/heads/master
i:
  331081: 611fcfa
  331079: 49f822b
v: v3
  • Loading branch information
Ezequiel Garcia authored and Mauro Carvalho Chehab committed Sep 25, 2012
1 parent 53e66ab commit 6a3c43c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: c6b69c6c58288587c33efb43ca6e19f1c80b2757
refs/heads/master: 8ac456495a33d9466076fea94594181ceefb76d9
16 changes: 12 additions & 4 deletions trunk/drivers/media/usb/stk1160/stk1160-v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,15 @@ static int stk1160_start_streaming(struct stk1160 *dev)
if (!dev->isoc_ctl.num_bufs || new_pkt_size) {
rc = stk1160_alloc_isoc(dev);
if (rc < 0)
goto out_unlock;
goto out_stop_hw;
}

/* submit urbs and enables IRQ */
for (i = 0; i < dev->isoc_ctl.num_bufs; i++) {
rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_KERNEL);
if (rc) {
stk1160_err("cannot submit urb[%d] (%d)\n", i, rc);
stk1160_uninit_isoc(dev);
goto out_unlock;
goto out_uninit;
}
}

Expand All @@ -206,7 +205,16 @@ static int stk1160_start_streaming(struct stk1160 *dev)

stk1160_dbg("streaming started\n");

out_unlock:
mutex_unlock(&dev->v4l_lock);

return 0;

out_uninit:
stk1160_uninit_isoc(dev);
out_stop_hw:
usb_set_interface(dev->udev, 0, 0);
stk1160_clear_queue(dev);

mutex_unlock(&dev->v4l_lock);

return rc;
Expand Down

0 comments on commit 6a3c43c

Please sign in to comment.