aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2006-02-07 03:25:39 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-07 03:25:39 -0500
commit4d17d0834a2e6a5cba096ea09592a4a096183300 (patch)
treefa39740c5694402941deb48b4f2688a8da68ccd2
parentf7d66e82c6df37043ddd41ec9ec893844d3a18be (diff)
V4L/DVB (3276): Added terratec hybrid xs and kworld 2800rf support
- Added terratec hybrid xs product/vendorid - Added gpio audio initialization for kworld pvr 2800rf Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--Documentation/video4linux/CARDLIST.em28xx1
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c56
-rw-r--r--drivers/media/video/em28xx/em28xx.h4
3 files changed, 56 insertions, 5 deletions
diff --git a/Documentation/video4linux/CARDLIST.em28xx b/Documentation/video4linux/CARDLIST.em28xx
index a0c7cad20971..7a903f7080c3 100644
--- a/Documentation/video4linux/CARDLIST.em28xx
+++ b/Documentation/video4linux/CARDLIST.em28xx
@@ -8,3 +8,4 @@
8 7 -> Leadtek Winfast USB II (em2800) 8 7 -> Leadtek Winfast USB II (em2800)
9 8 -> Kworld USB2800 (em2800) 9 8 -> Kworld USB2800 (em2800)
10 9 -> Pinnacle Dazzle DVC 90 (em2820/em2840) [2304:0207] 10 9 -> Pinnacle Dazzle DVC 90 (em2820/em2840) [2304:0207]
11 12 -> Unknown EM2820/2840 video grabber (em2820/em2840)
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index ed428c58b73d..573d24d2a18d 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -72,6 +72,24 @@ struct em28xx_board em28xx_boards[] = {
72 .amux = 1, 72 .amux = 1,
73 }}, 73 }},
74 }, 74 },
75 [EM2820_BOARD_KWORLD_PVRTV2800RF] = {
76 .name = "Unknown EM2820/2840 video grabber",
77 .is_em2800 = 0,
78 .vchannels = 2,
79 .norm = VIDEO_MODE_PAL,
80 .tda9887_conf = TDA9887_PRESENT,
81 .has_tuner = 1,
82 .decoder = EM28XX_SAA7113,
83 .input = {{
84 .type = EM28XX_VMUX_COMPOSITE1,
85 .vmux = 0,
86 .amux = 1,
87 },{
88 .type = EM28XX_VMUX_SVIDEO,
89 .vmux = 9,
90 .amux = 1,
91 }},
92 },
75 [EM2820_BOARD_TERRATEC_CINERGY_250] = { 93 [EM2820_BOARD_TERRATEC_CINERGY_250] = {
76 .name = "Terratec Cinergy 250 USB", 94 .name = "Terratec Cinergy 250 USB",
77 .vchannels = 3, 95 .vchannels = 3,
@@ -136,8 +154,30 @@ struct em28xx_board em28xx_boards[] = {
136 .amux = 1, 154 .amux = 1,
137 }}, 155 }},
138 }, 156 },
139 [EM2880_BOARD_WINTV_HVR_900] = { 157 [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = {
140 .name = "WinTV HVR 900", 158 .name = "Hauppauge WinTV HVR 900",
159 .vchannels = 3,
160 .norm = VIDEO_MODE_PAL,
161 .has_tuner = 0,
162 .tda9887_conf = TDA9887_PRESENT,
163 .has_tuner = 1,
164 .decoder = EM28XX_TVP5150,
165 .input = {{
166 .type = EM28XX_VMUX_COMPOSITE1,
167 .vmux = 2,
168 .amux = 0,
169 },{
170 .type = EM28XX_VMUX_TELEVISION,
171 .vmux = 0,
172 .amux = 1,
173 },{
174 .type = EM28XX_VMUX_SVIDEO,
175 .vmux = 9,
176 .amux = 1,
177 }},
178 },
179 [EM2880_BOARD_TERRATEC_HYBRID_XS] = {
180 .name = "Terratec Hybrid XS",
141 .vchannels = 3, 181 .vchannels = 3,
142 .norm = VIDEO_MODE_PAL, 182 .norm = VIDEO_MODE_PAL,
143 .has_tuner = 0, 183 .has_tuner = 0,
@@ -276,7 +316,8 @@ struct usb_device_id em28xx_id_table [] = {
276 { USB_DEVICE(0x2304, 0x0208), .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, 316 { USB_DEVICE(0x2304, 0x0208), .driver_info = EM2820_BOARD_PINNACLE_USB_2 },
277 { USB_DEVICE(0x2040, 0x4200), .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, 317 { USB_DEVICE(0x2040, 0x4200), .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 },
278 { USB_DEVICE(0x2304, 0x0207), .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, 318 { USB_DEVICE(0x2304, 0x0207), .driver_info = EM2820_BOARD_PINNACLE_DVC_90 },
279 { USB_DEVICE(0x2040, 0x6500), .driver_info = EM2880_BOARD_WINTV_HVR_900 }, 319 { USB_DEVICE(0x2040, 0x6500), .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 },
320 { USB_DEVICE(0x0ccd, 0x0042), .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS },
280 { }, 321 { },
281}; 322};
282 323
@@ -284,7 +325,8 @@ void em28xx_pre_card_setup(struct em28xx *dev)
284{ 325{
285 /* request some modules */ 326 /* request some modules */
286 switch(dev->model){ 327 switch(dev->model){
287 case EM2880_BOARD_WINTV_HVR_900: 328 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
329 case EM2880_BOARD_TERRATEC_HYBRID_XS:
288 { 330 {
289 em28xx_write_regs_req(dev, 0x00, 0x08, "\x7d", 1); // reset through GPIO? 331 em28xx_write_regs_req(dev, 0x00, 0x08, "\x7d", 1); // reset through GPIO?
290 break; 332 break;
@@ -317,6 +359,12 @@ void em28xx_card_setup(struct em28xx *dev)
317 dev->has_msp34xx=0; 359 dev->has_msp34xx=0;
318 break; 360 break;
319 } 361 }
362 case EM2820_BOARD_KWORLD_PVRTV2800RF:
363 {
364 em28xx_write_regs_req(dev,0x00,0x08, "\xf9", 1); // GPIO enables sound on KWORLD PVR TV 2800RF
365 break;
366 }
367
320 } 368 }
321} 369}
322 370
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index 8269cca7dcdb..ddf06c520e99 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -41,7 +41,9 @@
41#define EM2800_BOARD_LEADTEK_WINFAST_USBII 7 41#define EM2800_BOARD_LEADTEK_WINFAST_USBII 7
42#define EM2800_BOARD_KWORLD_USB2800 8 42#define EM2800_BOARD_KWORLD_USB2800 8
43#define EM2820_BOARD_PINNACLE_DVC_90 9 43#define EM2820_BOARD_PINNACLE_DVC_90 9
44#define EM2880_BOARD_WINTV_HVR_900 10 44#define EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 10
45#define EM2880_BOARD_TERRATEC_HYBRID_XS 11
46#define EM2820_BOARD_KWORLD_PVRTV2800RF 12
45 47
46#define UNSET -1 48#define UNSET -1
47 49