aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-dvb.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-17 20:37:40 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:41 -0400
commit227ad4ab9058ef2624934183e8083886cf64bf56 (patch)
tree8cc10b3cc1ea7b23c54411c007581e5cd9ec6217 /drivers/media/video/em28xx/em28xx-dvb.c
parentee6e3a865a469c78daa93a1e6cdbaca3a102f9c8 (diff)
V4L/DVB (7596): em28xx-dvb: Add support for HVR950
This patch adds DVB support for Hauppauge HVR950. Thanks to Michael Krufky <mkrufky@linuxtv.org> for getting those values. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-dvb.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-dvb.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c
index 1ffe64f62095..1645021191a8 100644
--- a/drivers/media/video/em28xx/em28xx-dvb.c
+++ b/drivers/media/video/em28xx/em28xx-dvb.c
@@ -58,7 +58,10 @@ buffer_setup(struct videobuf_queue *vq, unsigned int *count, unsigned int *size)
58 58
59/* ------------------------------------------------------------------ */ 59/* ------------------------------------------------------------------ */
60 60
61/* Add demods here */ 61static struct lgdt330x_config em2880_lgdt3303_dev = {
62 .demod_address = 0x0e,
63 .demod_chip = LGDT3303,
64};
62 65
63/* ------------------------------------------------------------------ */ 66/* ------------------------------------------------------------------ */
64 67
@@ -70,6 +73,7 @@ static int attach_xc3028(u8 addr, struct em28xx *dev)
70 .i2c_adap = &dev->i2c_adap, 73 .i2c_adap = &dev->i2c_adap,
71 .i2c_addr = addr, 74 .i2c_addr = addr,
72 .ctrl = &ctl, 75 .ctrl = &ctl,
76 .callback = em28xx_tuner_callback,
73 }; 77 };
74 78
75 if (!dev->dvb.frontend) { 79 if (!dev->dvb.frontend) {
@@ -109,6 +113,17 @@ static int dvb_init(struct em28xx *dev)
109 113
110 /* init frontend */ 114 /* init frontend */
111 switch (dev->model) { 115 switch (dev->model) {
116 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950:
117 /* Enable lgdt330x */
118 dev->mode = EM28XX_ANALOG_MODE;
119 em28xx_tuner_callback(dev, XC2028_TUNER_RESET, 0);
120
121 dev->dvb.frontend = dvb_attach(lgdt330x_attach,
122 &em2880_lgdt3303_dev,
123 &dev->i2c_adap);
124 if (attach_xc3028(0x61, dev) < 0)
125 return -EINVAL;
126 break;
112 default: 127 default:
113 printk(KERN_ERR "%s/2: The frontend of your DVB/ATSC card" 128 printk(KERN_ERR "%s/2: The frontend of your DVB/ATSC card"
114 " isn't supported yet\n", 129 " isn't supported yet\n",