Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65913
b: refs/heads/master
c: 13595a5
h: refs/heads/master
i:
  65911: 1d6a141
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 10, 2007
1 parent c26aa45 commit 2d084c0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 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: b25be97929c85b2017379e05588740f564a61c22
refs/heads/master: 13595a51c0da8ec212ba6f5df79519dbd74166c0
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/cx88/cx88-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,9 @@ EXPORT_SYMBOL(cx88_vdev_init);
EXPORT_SYMBOL(cx88_core_get);
EXPORT_SYMBOL(cx88_core_put);

EXPORT_SYMBOL(cx88_ir_start);
EXPORT_SYMBOL(cx88_ir_stop);

/*
* Local variables:
* c-basic-offset: 8
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/cx88/cx88-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static void cx88_ir_work(struct work_struct *work)
mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling));
}

static void cx88_ir_start(struct cx88_core *core, struct cx88_IR *ir)
void cx88_ir_start(struct cx88_core *core, struct cx88_IR *ir)
{
if (ir->polling) {
setup_timer(&ir->timer, ir_timer, (unsigned long)ir);
Expand All @@ -172,7 +172,7 @@ static void cx88_ir_start(struct cx88_core *core, struct cx88_IR *ir)
}
}

static void cx88_ir_stop(struct cx88_core *core, struct cx88_IR *ir)
void cx88_ir_stop(struct cx88_core *core, struct cx88_IR *ir)
{
if (ir->sampling) {
cx_write(MO_DDSCFG_IO, 0x0);
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,8 @@ static int cx8800_suspend(struct pci_dev *pci_dev, pm_message_t state)
}
spin_unlock(&dev->slock);

if (core->ir)
cx88_ir_stop(core, core->ir);
/* FIXME -- shutdown device */
cx88_shutdown(core);

Expand Down Expand Up @@ -1993,6 +1995,10 @@ static int cx8800_resume(struct pci_dev *pci_dev)

/* FIXME: re-initialize hardware */
cx88_reset(core);
if (core->ir)
cx88_ir_start(core, core->ir);

cx_set(MO_PCI_INTMSK, core->pci_irqmask);

/* restart video+vbi capture */
spin_lock(&dev->slock);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/cx88/cx88.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board
int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci);
int cx88_ir_fini(struct cx88_core *core);
void cx88_ir_irq(struct cx88_core *core);
void cx88_ir_start(struct cx88_core *core, struct cx88_IR *ir);
void cx88_ir_stop(struct cx88_core *core, struct cx88_IR *ir);

/* ----------------------------------------------------------- */
/* cx88-mpeg.c */
Expand Down

0 comments on commit 2d084c0

Please sign in to comment.