Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367073
b: refs/heads/master
c: 5ddfbbb
h: refs/heads/master
i:
  367071: 85c7d30
v: v3
  • Loading branch information
Alexey Khoroshilov authored and Mauro Carvalho Chehab committed Apr 22, 2013
1 parent 2276b79 commit 054143d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 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: cdcfe40a5fee6a3300632b9a6e7f9de596f0b450
refs/heads/master: 5ddfbbb9ca2e74d4b392ccef675641babba6b7f8
10 changes: 6 additions & 4 deletions trunk/drivers/media/pci/cx88/cx88-mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,17 @@ static int cx8802_suspend_common(struct pci_dev *pci_dev, pm_message_t state)
{
struct cx8802_dev *dev = pci_get_drvdata(pci_dev);
struct cx88_core *core = dev->core;
unsigned long flags;

/* stop mpeg dma */
spin_lock(&dev->slock);
spin_lock_irqsave(&dev->slock, flags);
if (!list_empty(&dev->mpegq.active)) {
dprintk( 2, "suspend\n" );
printk("%s: suspend mpeg\n", core->name);
cx8802_stop_dma(dev);
del_timer(&dev->mpegq.timeout);
}
spin_unlock(&dev->slock);
spin_unlock_irqrestore(&dev->slock, flags);

/* FIXME -- shutdown device */
cx88_shutdown(dev->core);
Expand All @@ -558,6 +559,7 @@ static int cx8802_resume_common(struct pci_dev *pci_dev)
{
struct cx8802_dev *dev = pci_get_drvdata(pci_dev);
struct cx88_core *core = dev->core;
unsigned long flags;
int err;

if (dev->state.disabled) {
Expand All @@ -584,12 +586,12 @@ static int cx8802_resume_common(struct pci_dev *pci_dev)
cx88_reset(dev->core);

/* restart video+vbi capture */
spin_lock(&dev->slock);
spin_lock_irqsave(&dev->slock, flags);
if (!list_empty(&dev->mpegq.active)) {
printk("%s: resume mpeg\n", core->name);
cx8802_restart_queue(dev,&dev->mpegq);
}
spin_unlock(&dev->slock);
spin_unlock_irqrestore(&dev->slock, flags);

return 0;
}
Expand Down
10 changes: 6 additions & 4 deletions trunk/drivers/media/pci/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,9 +1954,10 @@ static int cx8800_suspend(struct pci_dev *pci_dev, pm_message_t state)
{
struct cx8800_dev *dev = pci_get_drvdata(pci_dev);
struct cx88_core *core = dev->core;
unsigned long flags;

/* stop video+vbi capture */
spin_lock(&dev->slock);
spin_lock_irqsave(&dev->slock, flags);
if (!list_empty(&dev->vidq.active)) {
printk("%s/0: suspend video\n", core->name);
stop_video_dma(dev);
Expand All @@ -1967,7 +1968,7 @@ static int cx8800_suspend(struct pci_dev *pci_dev, pm_message_t state)
cx8800_stop_vbi_dma(dev);
del_timer(&dev->vbiq.timeout);
}
spin_unlock(&dev->slock);
spin_unlock_irqrestore(&dev->slock, flags);

if (core->ir)
cx88_ir_stop(core);
Expand All @@ -1986,6 +1987,7 @@ static int cx8800_resume(struct pci_dev *pci_dev)
{
struct cx8800_dev *dev = pci_get_drvdata(pci_dev);
struct cx88_core *core = dev->core;
unsigned long flags;
int err;

if (dev->state.disabled) {
Expand Down Expand Up @@ -2016,7 +2018,7 @@ static int cx8800_resume(struct pci_dev *pci_dev)
cx_set(MO_PCI_INTMSK, core->pci_irqmask);

/* restart video+vbi capture */
spin_lock(&dev->slock);
spin_lock_irqsave(&dev->slock, flags);
if (!list_empty(&dev->vidq.active)) {
printk("%s/0: resume video\n", core->name);
restart_video_queue(dev,&dev->vidq);
Expand All @@ -2025,7 +2027,7 @@ static int cx8800_resume(struct pci_dev *pci_dev)
printk("%s/0: resume vbi\n", core->name);
cx8800_restart_vbi_queue(dev,&dev->vbiq);
}
spin_unlock(&dev->slock);
spin_unlock_irqrestore(&dev->slock, flags);

return 0;
}
Expand Down

0 comments on commit 054143d

Please sign in to comment.