aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-cards.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2007-12-17 23:57:06 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:12 -0500
commitd1987d55a1eda774dfbab240a432607c17241d07 (patch)
tree7b45520cfd2496d15c47b1bac641c42c1964c9aa /drivers/media/video/cx23885/cx23885-cards.c
parentaacb9d31ee65c0685745ca4dfc7cdd24f8b7d92b (diff)
V4L/DVB (6885): Add support for the Hauppauge HVR1500Q
The express card ATSC/QAM tuner. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-cards.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index 134b931b160e..515f415564d5 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -113,6 +113,11 @@ struct cx23885_board cx23885_boards[] = {
113 .name = "DViCO FusionHDTV5 Express", 113 .name = "DViCO FusionHDTV5 Express",
114 .portb = CX23885_MPEG_DVB, 114 .portb = CX23885_MPEG_DVB,
115 }, 115 },
116 [CX23885_BOARD_HAUPPAUGE_HVR1500Q] = {
117 .name = "Hauppauge WinTV-HVR1500Q",
118 .portc = CX23885_MPEG_DVB,
119 },
120
116}; 121};
117const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards); 122const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards);
118 123
@@ -144,6 +149,10 @@ struct cx23885_subid cx23885_subids[] = {
144 .subvendor = 0x18ac, 149 .subvendor = 0x18ac,
145 .subdevice = 0xd500, 150 .subdevice = 0xd500,
146 .card = CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP, 151 .card = CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP,
152 },{
153 .subvendor = 0x0070,
154 .subdevice = 0x7797,
155 .card = CX23885_BOARD_HAUPPAUGE_HVR1500Q,
147 }, 156 },
148}; 157};
149const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids); 158const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids);
@@ -204,6 +213,11 @@ void cx23885_gpio_setup(struct cx23885_dev *dev)
204 /* GPIO-0 cx24227 demodulator reset */ 213 /* GPIO-0 cx24227 demodulator reset */
205 cx_set(GP0_IO, 0x00010001); /* Bring the part out of reset */ 214 cx_set(GP0_IO, 0x00010001); /* Bring the part out of reset */
206 break; 215 break;
216 case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
217 /* GPIO-0 cx24227 demodulator reset */
218 /* GPIO-2 xc5000 tuner reset */
219 cx_set(GP0_IO, 0x00050005); /* Bring the part out of reset */
220 break;
207 case CX23885_BOARD_HAUPPAUGE_HVR1800: 221 case CX23885_BOARD_HAUPPAUGE_HVR1800:
208 /* GPIO-0 656_CLK */ 222 /* GPIO-0 656_CLK */
209 /* GPIO-1 656_D0 */ 223 /* GPIO-1 656_D0 */
@@ -221,6 +235,7 @@ int cx23885_ir_init(struct cx23885_dev *dev)
221{ 235{
222 switch (dev->board) { 236 switch (dev->board) {
223 case CX23885_BOARD_HAUPPAUGE_HVR1250: 237 case CX23885_BOARD_HAUPPAUGE_HVR1250:
238 case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
224 case CX23885_BOARD_HAUPPAUGE_HVR1800: 239 case CX23885_BOARD_HAUPPAUGE_HVR1800:
225 /* FIXME: Implement me */ 240 /* FIXME: Implement me */
226 break; 241 break;
@@ -244,6 +259,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
244 259
245 switch (dev->board) { 260 switch (dev->board) {
246 case CX23885_BOARD_HAUPPAUGE_HVR1250: 261 case CX23885_BOARD_HAUPPAUGE_HVR1250:
262 case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
247 case CX23885_BOARD_HAUPPAUGE_HVR1800: 263 case CX23885_BOARD_HAUPPAUGE_HVR1800:
248 case CX23885_BOARD_HAUPPAUGE_HVR1800lp: 264 case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
249 if (dev->i2c_bus[0].i2c_rc == 0) 265 if (dev->i2c_bus[0].i2c_rc == 0)
@@ -258,6 +274,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
258 ts1->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; 274 ts1->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO;
259 break; 275 break;
260 case CX23885_BOARD_HAUPPAUGE_HVR1250: 276 case CX23885_BOARD_HAUPPAUGE_HVR1250:
277 case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
261 case CX23885_BOARD_HAUPPAUGE_HVR1800: 278 case CX23885_BOARD_HAUPPAUGE_HVR1800:
262 case CX23885_BOARD_HAUPPAUGE_HVR1800lp: 279 case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
263 default: 280 default: