diff options
Diffstat (limited to 'drivers/media/video/au0828/au0828-dvb.c')
-rw-r--r-- | drivers/media/video/au0828/au0828-dvb.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/media/video/au0828/au0828-dvb.c b/drivers/media/video/au0828/au0828-dvb.c index 584a83a94a2a..ba94be7e0ac1 100644 --- a/drivers/media/video/au0828/au0828-dvb.c +++ b/drivers/media/video/au0828/au0828-dvb.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Driver for the Auvitek USB bridge | 2 | * Driver for the Auvitek USB bridge |
3 | * | 3 | * |
4 | * Copyright (c) 2008 Steven Toth <stoth@hauppauge.com> | 4 | * Copyright (c) 2008 Steven Toth <stoth@linuxtv.org> |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
@@ -29,6 +29,7 @@ | |||
29 | #include "au8522.h" | 29 | #include "au8522.h" |
30 | #include "xc5000.h" | 30 | #include "xc5000.h" |
31 | #include "mxl5007t.h" | 31 | #include "mxl5007t.h" |
32 | #include "tda18271.h" | ||
32 | 33 | ||
33 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 34 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
34 | 35 | ||
@@ -38,6 +39,15 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | |||
38 | static struct au8522_config hauppauge_hvr950q_config = { | 39 | static struct au8522_config hauppauge_hvr950q_config = { |
39 | .demod_address = 0x8e >> 1, | 40 | .demod_address = 0x8e >> 1, |
40 | .status_mode = AU8522_DEMODLOCKING, | 41 | .status_mode = AU8522_DEMODLOCKING, |
42 | .qam_if = AU8522_IF_6MHZ, | ||
43 | .vsb_if = AU8522_IF_6MHZ, | ||
44 | }; | ||
45 | |||
46 | static struct au8522_config hauppauge_woodbury_config = { | ||
47 | .demod_address = 0x8e >> 1, | ||
48 | .status_mode = AU8522_DEMODLOCKING, | ||
49 | .qam_if = AU8522_IF_4MHZ, | ||
50 | .vsb_if = AU8522_IF_3_25MHZ, | ||
41 | }; | 51 | }; |
42 | 52 | ||
43 | static struct xc5000_config hauppauge_hvr950q_tunerconfig = { | 53 | static struct xc5000_config hauppauge_hvr950q_tunerconfig = { |
@@ -51,6 +61,10 @@ static struct mxl5007t_config mxl5007t_hvr950q_config = { | |||
51 | .if_freq_hz = MxL_IF_6_MHZ, | 61 | .if_freq_hz = MxL_IF_6_MHZ, |
52 | }; | 62 | }; |
53 | 63 | ||
64 | static struct tda18271_config hauppauge_woodbury_tunerconfig = { | ||
65 | .gate = TDA18271_GATE_DIGITAL, | ||
66 | }; | ||
67 | |||
54 | /*-------------------------------------------------------------------*/ | 68 | /*-------------------------------------------------------------------*/ |
55 | static void urb_completion(struct urb *purb) | 69 | static void urb_completion(struct urb *purb) |
56 | { | 70 | { |
@@ -357,6 +371,15 @@ int au0828_dvb_register(struct au0828_dev *dev) | |||
357 | &dev->i2c_adap, 0x60, | 371 | &dev->i2c_adap, 0x60, |
358 | &mxl5007t_hvr950q_config); | 372 | &mxl5007t_hvr950q_config); |
359 | break; | 373 | break; |
374 | case AU0828_BOARD_HAUPPAUGE_WOODBURY: | ||
375 | dvb->frontend = dvb_attach(au8522_attach, | ||
376 | &hauppauge_woodbury_config, | ||
377 | &dev->i2c_adap); | ||
378 | if (dvb->frontend != NULL) | ||
379 | dvb_attach(tda18271_attach, dvb->frontend, | ||
380 | 0x60, &dev->i2c_adap, | ||
381 | &hauppauge_woodbury_tunerconfig); | ||
382 | break; | ||
360 | default: | 383 | default: |
361 | printk(KERN_WARNING "The frontend of your DVB/ATSC card " | 384 | printk(KERN_WARNING "The frontend of your DVB/ATSC card " |
362 | "isn't supported yet\n"); | 385 | "isn't supported yet\n"); |