aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-driver.c
diff options
context:
space:
mode:
authorRicardo Cerqueira <v4l@cerqueira.org>2006-01-09 12:25:25 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:25 -0500
commit4abdfed5676e5ef7f2461bb76f5929068a9cc9cf (patch)
treeff4e3e80f57f788a9cf450966f137c44b58ff1b2 /drivers/media/video/bttv-driver.c
parente0b2d7a89bb250fb0c9068c4481c9fd26c3fb227 (diff)
V4L/DVB (3161): ir-kbd-gpio is now part of bttv
- Merged ir-kbd-gpio into bttv as bttv-input, for consistency with other input modules Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/bttv-driver.c')
-rw-r--r--drivers/media/video/bttv-driver.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c
index 47347674a5e0..8bee7d5796dd 100644
--- a/drivers/media/video/bttv-driver.c
+++ b/drivers/media/video/bttv-driver.c
@@ -3702,8 +3702,8 @@ static irqreturn_t bttv_irq(int irq, void *dev_id, struct pt_regs * regs)
3702 3702
3703 btv=(struct bttv *)dev_id; 3703 btv=(struct bttv *)dev_id;
3704 3704
3705 if (btv->any_irq) 3705 if (btv->custom_irq)
3706 handled = bttv_any_irq(&btv->c); 3706 handled = btv->custom_irq(btv);
3707 3707
3708 count=0; 3708 count=0;
3709 while (1) { 3709 while (1) {
@@ -3739,9 +3739,9 @@ static irqreturn_t bttv_irq(int irq, void *dev_id, struct pt_regs * regs)
3739 if (astat&BT848_INT_VSYNC) 3739 if (astat&BT848_INT_VSYNC)
3740 btv->field_count++; 3740 btv->field_count++;
3741 3741
3742 if (astat & BT848_INT_GPINT) { 3742 if ((astat & BT848_INT_GPINT) && btv->remote) {
3743 wake_up(&btv->gpioq); 3743 wake_up(&btv->gpioq);
3744 bttv_gpio_irq(&btv->c); 3744 bttv_input_irq(btv);
3745 } 3745 }
3746 3746
3747 if (astat & BT848_INT_I2CDONE) { 3747 if (astat & BT848_INT_I2CDONE) {
@@ -4070,6 +4070,8 @@ static int __devinit bttv_probe(struct pci_dev *dev,
4070 if (bttv_tvcards[btv->c.type].has_dvb) 4070 if (bttv_tvcards[btv->c.type].has_dvb)
4071 bttv_sub_add_device(&btv->c, "dvb"); 4071 bttv_sub_add_device(&btv->c, "dvb");
4072 4072
4073 bttv_input_init(btv);
4074
4073 /* everything is fine */ 4075 /* everything is fine */
4074 bttv_num++; 4076 bttv_num++;
4075 return 0; 4077 return 0;
@@ -4104,7 +4106,8 @@ static void __devexit bttv_remove(struct pci_dev *pci_dev)
4104 /* tell gpio modules we are leaving ... */ 4106 /* tell gpio modules we are leaving ... */
4105 btv->shutdown=1; 4107 btv->shutdown=1;
4106 wake_up(&btv->gpioq); 4108 wake_up(&btv->gpioq);
4107 bttv_sub_del_devices(&btv->c); 4109 bttv_input_fini(btv);
4110 //bttv_sub_del_devices(&btv->c);
4108 4111
4109 /* unregister i2c_bus + input */ 4112 /* unregister i2c_bus + input */
4110 fini_bttv_i2c(btv); 4113 fini_bttv_i2c(btv);