Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113826
b: refs/heads/master
c: 05d26cc
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 0285b0f commit 37332b4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 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: 3a6b974d37370e89637f870657f93fd859e09ee3
refs/heads/master: 05d26cc894cb42f5c71eaf667d700dd632745cd9
52 changes: 26 additions & 26 deletions trunk/drivers/media/video/saa7134/saa7134-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,32 +359,6 @@ void saa7134_buffer_timeout(unsigned long data)
spin_unlock_irqrestore(&dev->slock,flags);
}

/* resends a current buffer in queue after resume */

static int saa7134_buffer_requeue(struct saa7134_dev *dev,
struct saa7134_dmaqueue *q)
{
struct saa7134_buf *buf, *next;

assert_spin_locked(&dev->slock);

buf = q->curr;
next = buf;
dprintk("buffer_requeue\n");

if (!buf)
return 0;

dprintk("buffer_requeue : resending active buffers \n");

if (!list_empty(&q->queue))
next = list_entry(q->queue.next, struct saa7134_buf,
vb.queue);
buf->activate(dev, buf, next);

return 0;
}

/* ------------------------------------------------------------------ */

int saa7134_set_dmabits(struct saa7134_dev *dev)
Expand Down Expand Up @@ -1139,6 +1113,32 @@ static void __devexit saa7134_finidev(struct pci_dev *pci_dev)
}

#ifdef CONFIG_PM

/* resends a current buffer in queue after resume */
static int saa7134_buffer_requeue(struct saa7134_dev *dev,
struct saa7134_dmaqueue *q)
{
struct saa7134_buf *buf, *next;

assert_spin_locked(&dev->slock);

buf = q->curr;
next = buf;
dprintk("buffer_requeue\n");

if (!buf)
return 0;

dprintk("buffer_requeue : resending active buffers \n");

if (!list_empty(&q->queue))
next = list_entry(q->queue.next, struct saa7134_buf,
vb.queue);
buf->activate(dev, buf, next);

return 0;
}

static int saa7134_suspend(struct pci_dev *pci_dev , pm_message_t state)
{

Expand Down

0 comments on commit 37332b4

Please sign in to comment.