Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138335
b: refs/heads/master
c: 48f98f7
h: refs/heads/master
i:
  138333: acfa12b
  138331: 13e3ff4
  138327: afd17c6
  138319: 33c7975
  138303: 7b5a21a
v: v3
  • Loading branch information
Janne Grunau authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent e1b9f96 commit 6d7e685
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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: d2ff3ec81628cbf9470c496b3d0c0780165643f5
refs/heads/master: 48f98f7557d35d360470bf6d9fd7b00d04fba828
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/hdpvr/hdpvr-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,10 @@ static void hdpvr_disconnect(struct usb_interface *interface)
video_unregister_device(dev->video_dev);
wake_up_interruptible(&dev->wait_data);
wake_up_interruptible(&dev->wait_buffer);
mutex_unlock(&dev->io_mutex);
msleep(100);
flush_workqueue(dev->workqueue);
mutex_lock(&dev->io_mutex);
hdpvr_cancel_queue(dev);
destroy_workqueue(dev->workqueue);
mutex_unlock(&dev->io_mutex);
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/media/video/hdpvr/hdpvr-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,14 @@ static int hdpvr_stop_streaming(struct hdpvr_device *dev)

dev->status = STATUS_SHUTTING_DOWN;
hdpvr_config_call(dev, CTRL_STOP_STREAMING_VALUE, 0x00);
mutex_unlock(&dev->io_mutex);

wake_up_interruptible(&dev->wait_buffer);
msleep(50);

flush_workqueue(dev->workqueue);

mutex_lock(&dev->io_mutex);
/* kill the still outstanding urbs */
hdpvr_cancel_queue(dev);

Expand Down Expand Up @@ -1130,7 +1132,7 @@ static int vidioc_encoder_cmd(struct file *filp, void *priv,
default:
v4l2_dbg(MSG_INFO, hdpvr_debug, dev->video_dev,
"Unsupported encoder cmd %d\n", a->cmd);
return -EINVAL;
res = -EINVAL;
}
mutex_unlock(&dev->io_mutex);
return res;
Expand Down

0 comments on commit 6d7e685

Please sign in to comment.