aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bt8xx')
-rw-r--r--drivers/media/video/bt8xx/bttv-cards.c10
-rw-r--r--drivers/media/video/bt8xx/bttv-gpio.c14
-rw-r--r--drivers/media/video/bt8xx/bttv-input.c2
-rw-r--r--drivers/media/video/bt8xx/bttv.h1
-rw-r--r--drivers/media/video/bt8xx/bttvp.h2
5 files changed, 8 insertions, 21 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c
index 2b64aa835b42..3116345c93b1 100644
--- a/drivers/media/video/bt8xx/bttv-cards.c
+++ b/drivers/media/video/bt8xx/bttv-cards.c
@@ -269,7 +269,7 @@ static struct CARD {
269 { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, 269 { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" },
270 { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, 270 { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" },
271 271
272 { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, 272 { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" },
273 { 0x010114c7, BTTV_BOARD_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" }, 273 { 0x010114c7, BTTV_BOARD_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" },
274 274
275 { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, 275 { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" },
@@ -309,6 +309,7 @@ static struct CARD {
309 { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, 309 { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" },
310 { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, 310 { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" },
311 { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, 311 { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" },
312 { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "},
312 313
313 { 0, -1, NULL } 314 { 0, -1, NULL }
314}; 315};
@@ -1903,7 +1904,7 @@ struct tvcard bttv_tvcards[] = {
1903 .no_tda7432 = 1, 1904 .no_tda7432 = 1,
1904 }, 1905 },
1905 [BTTV_BOARD_OSPREY2x0] = { 1906 [BTTV_BOARD_OSPREY2x0] = {
1906 .name = "Osprey 210/220", /* 0x1(A|B)-04C0-C1 */ 1907 .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */
1907 .video_inputs = 2, 1908 .video_inputs = 2,
1908 .audio_inputs = 1, 1909 .audio_inputs = 1,
1909 .tuner = -1, 1910 .tuner = -1,
@@ -2745,7 +2746,7 @@ struct tvcard bttv_tvcards[] = {
2745 /* Michael Krufky <mkrufky@m1k.net> */ 2746 /* Michael Krufky <mkrufky@m1k.net> */
2746 .name = "DViCO FusionHDTV 5 Lite", 2747 .name = "DViCO FusionHDTV 5 Lite",
2747 .tuner = 0, 2748 .tuner = 0,
2748 .tuner_type = TUNER_LG_TDVS_H062F, 2749 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
2749 .tuner_addr = ADDR_UNSET, 2750 .tuner_addr = ADDR_UNSET,
2750 .radio_addr = ADDR_UNSET, 2751 .radio_addr = ADDR_UNSET,
2751 .video_inputs = 3, 2752 .video_inputs = 3,
@@ -2762,7 +2763,7 @@ struct tvcard bttv_tvcards[] = {
2762 }, 2763 },
2763 /* ---- card 0x88---------------------------------- */ 2764 /* ---- card 0x88---------------------------------- */
2764 [BTTV_BOARD_ACORP_Y878F] = { 2765 [BTTV_BOARD_ACORP_Y878F] = {
2765 /* Mauro Carvalho Chehab <mchehab@brturbo.com.br> */ 2766 /* Mauro Carvalho Chehab <mchehab@infradead.org> */
2766 .name = "Acorp Y878F", 2767 .name = "Acorp Y878F",
2767 .video_inputs = 3, 2768 .video_inputs = 3,
2768 .audio_inputs = 1, 2769 .audio_inputs = 1,
@@ -3790,6 +3791,7 @@ static void __devinit osprey_eeprom(struct bttv *btv)
3790 break; 3791 break;
3791 case 0x0060: 3792 case 0x0060:
3792 case 0x0070: 3793 case 0x0070:
3794 case 0x00A0:
3793 btv->c.type = BTTV_BOARD_OSPREY2x0; 3795 btv->c.type = BTTV_BOARD_OSPREY2x0;
3794 /* enable output on select control lines */ 3796 /* enable output on select control lines */
3795 gpio_inout(0xffffff,0x000303); 3797 gpio_inout(0xffffff,0x000303);
diff --git a/drivers/media/video/bt8xx/bttv-gpio.c b/drivers/media/video/bt8xx/bttv-gpio.c
index c4d5e2b70c28..ba081f6f8c82 100644
--- a/drivers/media/video/bt8xx/bttv-gpio.c
+++ b/drivers/media/video/bt8xx/bttv-gpio.c
@@ -118,20 +118,6 @@ int bttv_sub_del_devices(struct bttv_core *core)
118 return 0; 118 return 0;
119} 119}
120 120
121void bttv_gpio_irq(struct bttv_core *core)
122{
123 struct bttv_sub_driver *drv;
124 struct bttv_sub_device *dev;
125 struct list_head *item;
126
127 list_for_each(item,&core->subs) {
128 dev = list_entry(item,struct bttv_sub_device,list);
129 drv = to_bttv_sub_drv(dev->dev.driver);
130 if (drv && drv->gpio_irq)
131 drv->gpio_irq(dev);
132 }
133}
134
135/* ----------------------------------------------------------------------- */ 121/* ----------------------------------------------------------------------- */
136/* external: sub-driver register/unregister */ 122/* external: sub-driver register/unregister */
137 123
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c
index 69efa0e5174d..b41f81d2372c 100644
--- a/drivers/media/video/bt8xx/bttv-input.c
+++ b/drivers/media/video/bt8xx/bttv-input.c
@@ -355,7 +355,7 @@ int bttv_input_init(struct bttv *btv)
355 355
356 if (ir->rc5_gpio) { 356 if (ir->rc5_gpio) {
357 u32 gpio; 357 u32 gpio;
358 /* enable remote irq */ 358 /* enable remote irq */
359 bttv_gpio_inout(&btv->c, (1 << 4), 1 << 4); 359 bttv_gpio_inout(&btv->c, (1 << 4), 1 << 4);
360 gpio = bttv_gpio_read(&btv->c); 360 gpio = bttv_gpio_read(&btv->c);
361 bttv_gpio_write(&btv->c, gpio & ~(1 << 4)); 361 bttv_gpio_write(&btv->c, gpio & ~(1 << 4));
diff --git a/drivers/media/video/bt8xx/bttv.h b/drivers/media/video/bt8xx/bttv.h
index 3a23265c1538..f9c9e3c4d111 100644
--- a/drivers/media/video/bt8xx/bttv.h
+++ b/drivers/media/video/bt8xx/bttv.h
@@ -350,7 +350,6 @@ struct bttv_sub_driver {
350 char wanted[BUS_ID_SIZE]; 350 char wanted[BUS_ID_SIZE];
351 int (*probe)(struct bttv_sub_device *sub); 351 int (*probe)(struct bttv_sub_device *sub);
352 void (*remove)(struct bttv_sub_device *sub); 352 void (*remove)(struct bttv_sub_device *sub);
353 void (*gpio_irq)(struct bttv_sub_device *sub);
354}; 353};
355#define to_bttv_sub_drv(x) container_of((x), struct bttv_sub_driver, drv) 354#define to_bttv_sub_drv(x) container_of((x), struct bttv_sub_driver, drv)
356 355
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h
index ee989d2e15d9..d2956010f763 100644
--- a/drivers/media/video/bt8xx/bttvp.h
+++ b/drivers/media/video/bt8xx/bttvp.h
@@ -33,6 +33,7 @@
33#include <linux/i2c.h> 33#include <linux/i2c.h>
34#include <linux/i2c-algo-bit.h> 34#include <linux/i2c-algo-bit.h>
35#include <linux/videodev.h> 35#include <linux/videodev.h>
36#include <media/v4l2-common.h>
36#include <linux/pci.h> 37#include <linux/pci.h>
37#include <linux/input.h> 38#include <linux/input.h>
38#include <linux/mutex.h> 39#include <linux/mutex.h>
@@ -214,7 +215,6 @@ extern struct videobuf_queue_ops bttv_vbi_qops;
214extern struct bus_type bttv_sub_bus_type; 215extern struct bus_type bttv_sub_bus_type;
215int bttv_sub_add_device(struct bttv_core *core, char *name); 216int bttv_sub_add_device(struct bttv_core *core, char *name);
216int bttv_sub_del_devices(struct bttv_core *core); 217int bttv_sub_del_devices(struct bttv_core *core);
217void bttv_gpio_irq(struct bttv_core *core);
218 218
219 219
220/* ---------------------------------------------------------- */ 220/* ---------------------------------------------------------- */