Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268442
b: refs/heads/master
c: 21377cd
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent ca826b5 commit faf2f63
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 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: 55c37c0d6c9f447b2d42d0505471e8edcf283d5f
refs/heads/master: 21377cdd5e34b135d62bda5d974f052adf873341
36 changes: 18 additions & 18 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,30 +921,30 @@ static unsigned int video_poll(struct file *file,

static int video_release(struct file *file)
{
struct cx25821_fh *fh = file->private_data;
struct cx25821_dev *dev = fh->dev;
struct cx25821_fh *fh = file->private_data;
struct cx25821_dev *dev = fh->dev;

/* stop the risc engine and fifo */
cx_write(channel0->dma_ctl, 0); /* FIFO and RISC disable */
/* stop the risc engine and fifo */
cx_write(channel0->dma_ctl, 0); /* FIFO and RISC disable */

/* stop video capture */
if (cx25821_res_check(fh, RESOURCE_VIDEO0)) {
videobuf_queue_cancel(&fh->vidq);
cx25821_res_free(dev, fh, RESOURCE_VIDEO0);
}
/* stop video capture */
if (cx25821_res_check(fh, RESOURCE_VIDEO0)) {
videobuf_queue_cancel(&fh->vidq);
cx25821_res_free(dev, fh, RESOURCE_VIDEO0);
}

if (fh->vidq.read_buf) {
cx25821_buffer_release(&fh->vidq, fh->vidq.read_buf);
kfree(fh->vidq.read_buf);
}
if (fh->vidq.read_buf) {
cx25821_buffer_release(&fh->vidq, fh->vidq.read_buf);
kfree(fh->vidq.read_buf);
}

videobuf_mmap_free(&fh->vidq);
videobuf_mmap_free(&fh->vidq);

v4l2_prio_close(&dev->channels[fh->channel_id].prio, fh->prio);
file->private_data = NULL;
kfree(fh);
v4l2_prio_close(&dev->channels[fh->channel_id].prio, fh->prio);
file->private_data = NULL;
kfree(fh);

return 0;
return 0;
}

static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
Expand Down

0 comments on commit faf2f63

Please sign in to comment.