Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219394
b: refs/heads/master
c: a1c592b
h: refs/heads/master
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 8a29a1e commit 94d14d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e732d64416b243883f753e4a00960c3f3709317
refs/heads/master: a1c592b766ee94aaf0e2549b8ba4d0298c328484
10 changes: 10 additions & 0 deletions trunk/drivers/media/video/saa7164/saa7164-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ static int saa7164_dvb_pause_port(struct saa7164_port *port)
static int saa7164_dvb_stop_streaming(struct saa7164_port *port)
{
struct saa7164_dev *dev = port->dev;
struct saa7164_buffer *buf;
struct list_head *p, *q;
int ret;

dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
Expand All @@ -151,6 +153,14 @@ static int saa7164_dvb_stop_streaming(struct saa7164_port *port)
ret = saa7164_dvb_acquire_port(port);
ret = saa7164_dvb_stop_port(port);

/* Mark the hardware buffers as free */
mutex_lock(&port->dmaqueue_lock);
list_for_each_safe(p, q, &port->dmaqueue.list) {
buf = list_entry(p, struct saa7164_buffer, list);
buf->flags = SAA7164_BUFFER_FREE;
}
mutex_unlock(&port->dmaqueue_lock);

return ret;
}

Expand Down

0 comments on commit 94d14d7

Please sign in to comment.