aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-19 00:25:52 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:44 -0400
commita780a31cee55e01e7b479244e7907ba842c120a0 (patch)
treef398d3c68c301817369a0c743fb3bd9b479a88f7
parent2770b7d7136f9c6a51ae7fd1d29fa58caf2bcf1c (diff)
V4L/DVB (7647): Add support for the Hauppauge HVR-1700 digital mode
This adds support for DVB-T mode only, analog is not supported. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--Documentation/video4linux/CARDLIST.cx238851
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c34
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c1
-rw-r--r--drivers/media/video/cx23885/cx23885.h1
4 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/video4linux/CARDLIST.cx23885 b/Documentation/video4linux/CARDLIST.cx23885
index 3e9e999e5895..b057a3c9f8ff 100644
--- a/Documentation/video4linux/CARDLIST.cx23885
+++ b/Documentation/video4linux/CARDLIST.cx23885
@@ -6,3 +6,4 @@
6 5 -> Hauppauge WinTV-HVR1500Q [0070:7790,0070:7797] 6 5 -> Hauppauge WinTV-HVR1500Q [0070:7790,0070:7797]
7 6 -> Hauppauge WinTV-HVR1500 [0070:7710,0070:7717] 7 6 -> Hauppauge WinTV-HVR1500 [0070:7710,0070:7717]
8 7 -> Hauppauge WinTV-HVR1200 [0070:71d1] 8 7 -> Hauppauge WinTV-HVR1200 [0070:71d1]
9 8 -> Hauppauge WinTV-HVR1700 [0070:8101]
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index 8cb32f307a5d..84636ffc64dc 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -134,6 +134,10 @@ struct cx23885_board cx23885_boards[] = {
134 .name = "Hauppauge WinTV-HVR1200", 134 .name = "Hauppauge WinTV-HVR1200",
135 .portc = CX23885_MPEG_DVB, 135 .portc = CX23885_MPEG_DVB,
136 }, 136 },
137 [CX23885_BOARD_HAUPPAUGE_HVR1700] = {
138 .name = "Hauppauge WinTV-HVR1700",
139 .portc = CX23885_MPEG_DVB,
140 },
137}; 141};
138const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards); 142const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards);
139 143
@@ -189,6 +193,10 @@ struct cx23885_subid cx23885_subids[] = {
189 .subvendor = 0x0070, 193 .subvendor = 0x0070,
190 .subdevice = 0x71d1, 194 .subdevice = 0x71d1,
191 .card = CX23885_BOARD_HAUPPAUGE_HVR1200, 195 .card = CX23885_BOARD_HAUPPAUGE_HVR1200,
196 }, {
197 .subvendor = 0x0070,
198 .subdevice = 0x8101,
199 .card = CX23885_BOARD_HAUPPAUGE_HVR1700,
192 }, 200 },
193}; 201};
194const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids); 202const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids);
@@ -243,6 +251,9 @@ static void hauppauge_eeprom(struct cx23885_dev *dev, u8 *eeprom_data)
243 case 79561: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */ 251 case 79561: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */
244 case 79571: /* WinTV-HVR1250 (PCIe, OEM, No IR, full height, ATSC and Basic analog */ 252 case 79571: /* WinTV-HVR1250 (PCIe, OEM, No IR, full height, ATSC and Basic analog */
245 case 79671: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */ 253 case 79671: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */
254 case 81519:
255 /* WinTV-HVR1700 (PCIe, Retail, No IR, half height,
256 * DVB-T and MPEG2 HW Encoder */
246 break; 257 break;
247 default: 258 default:
248 printk("%s: warning: unknown hauppauge model #%d\n", dev->name, tv.model); 259 printk("%s: warning: unknown hauppauge model #%d\n", dev->name, tv.model);
@@ -333,6 +344,27 @@ void cx23885_gpio_setup(struct cx23885_dev *dev)
333 mdelay(20); 344 mdelay(20);
334 cx_set(GP0_IO, 0x00050005); 345 cx_set(GP0_IO, 0x00050005);
335 break; 346 break;
347 case CX23885_BOARD_HAUPPAUGE_HVR1700:
348 /* GPIO-0 TDA10048 demodulator reset */
349 /* GPIO-2 TDA8295A Reset */
350 /* GPIO-3-10 cx23417 data0-7 */
351 /* GPIO-11-14 cx23417 addr0-3 */
352 /* GPIO-15-18 cx23417 READY, CS, RD, WR */
353
354 /* The following GPIO's are on the interna AVCore (cx25840) */
355 /* GPIO-19 IR_RX */
356 /* GPIO-20 IR_TX 416/DVBT Select */
357 /* GPIO-21 IIS DAT */
358 /* GPIO-22 IIS WCLK */
359 /* GPIO-23 IIS BCLK */
360
361 /* Put the parts into reset and back */
362 cx_set(GP0_IO, 0x00050000);
363 mdelay(20);
364 cx_clear(GP0_IO, 0x00000005);
365 mdelay(20);
366 cx_set(GP0_IO, 0x00050005);
367 break;
336 } 368 }
337} 369}
338 370
@@ -374,6 +406,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
374 case CX23885_BOARD_HAUPPAUGE_HVR1800: 406 case CX23885_BOARD_HAUPPAUGE_HVR1800:
375 case CX23885_BOARD_HAUPPAUGE_HVR1800lp: 407 case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
376 case CX23885_BOARD_HAUPPAUGE_HVR1200: 408 case CX23885_BOARD_HAUPPAUGE_HVR1200:
409 case CX23885_BOARD_HAUPPAUGE_HVR1700:
377 if (dev->i2c_bus[0].i2c_rc == 0) 410 if (dev->i2c_bus[0].i2c_rc == 0)
378 hauppauge_eeprom(dev, eeprom+0xc0); 411 hauppauge_eeprom(dev, eeprom+0xc0);
379 break; 412 break;
@@ -391,6 +424,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
391 case CX23885_BOARD_HAUPPAUGE_HVR1800: 424 case CX23885_BOARD_HAUPPAUGE_HVR1800:
392 case CX23885_BOARD_HAUPPAUGE_HVR1800lp: 425 case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
393 case CX23885_BOARD_HAUPPAUGE_HVR1200: 426 case CX23885_BOARD_HAUPPAUGE_HVR1200:
427 case CX23885_BOARD_HAUPPAUGE_HVR1700:
394 default: 428 default:
395 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ 429 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */
396 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ 430 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 18cd90c9c0f3..a1086c8b66ee 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -330,6 +330,7 @@ static int dvb_register(struct cx23885_tsport *port)
330 } 330 }
331 break; 331 break;
332 case CX23885_BOARD_HAUPPAUGE_HVR1200: 332 case CX23885_BOARD_HAUPPAUGE_HVR1200:
333 case CX23885_BOARD_HAUPPAUGE_HVR1700:
333 i2c_bus = &dev->i2c_bus[0]; 334 i2c_bus = &dev->i2c_bus[0];
334 port->dvb.frontend = dvb_attach(tda10048_attach, 335 port->dvb.frontend = dvb_attach(tda10048_attach,
335 &hauppauge_hvr1200_config, 336 &hauppauge_hvr1200_config,
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 5bbfe6f50769..c5496e08c949 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -60,6 +60,7 @@
60#define CX23885_BOARD_HAUPPAUGE_HVR1500Q 5 60#define CX23885_BOARD_HAUPPAUGE_HVR1500Q 5
61#define CX23885_BOARD_HAUPPAUGE_HVR1500 6 61#define CX23885_BOARD_HAUPPAUGE_HVR1500 6
62#define CX23885_BOARD_HAUPPAUGE_HVR1200 7 62#define CX23885_BOARD_HAUPPAUGE_HVR1200 7
63#define CX23885_BOARD_HAUPPAUGE_HVR1700 8
63 64
64/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */ 65/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */
65#define CX23885_NORMS (\ 66#define CX23885_NORMS (\