diff options
author | Massimo Piccioni <alsa@piccio.org> | 2008-07-11 12:48:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:18:29 -0400 |
commit | e2fc00c21124d9d9a8d4f396e5498ea27ddfc8fd (patch) | |
tree | 01bb16551bf0c17077d9595e25edf621bb469c60 /drivers/media/video/saa7134/saa7134-dvb.c | |
parent | 52b5045078b76ee86e210210601d45670eab22f1 (diff) |
V4L/DVB (8244): saa7134: add support for AVerMedia M103
The following patch updates saa7134 driver to add support for AVerMedia
M103 MiniPCI DVB-T Hybrid card.
Signed-off-by: Massimo Piccioni <alsa@piccio.org>
[mchehab@infradead.org: fixed merge conflicts and a small codingstyle]
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index 341b101b0357..be48b9b66a67 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -1263,6 +1263,7 @@ static int dvb_init(struct saa7134_dev *dev) | |||
1263 | &avermedia_xc3028_mt352_dev, | 1263 | &avermedia_xc3028_mt352_dev, |
1264 | &dev->i2c_adap); | 1264 | &dev->i2c_adap); |
1265 | attach_xc3028 = 1; | 1265 | attach_xc3028 = 1; |
1266 | break; | ||
1266 | case SAA7134_BOARD_MD7134_BRIDGE_2: | 1267 | case SAA7134_BOARD_MD7134_BRIDGE_2: |
1267 | dev->dvb.frontend = dvb_attach(tda10086_attach, | 1268 | dev->dvb.frontend = dvb_attach(tda10086_attach, |
1268 | &sd1878_4m, &dev->i2c_adap); | 1269 | &sd1878_4m, &dev->i2c_adap); |
@@ -1290,6 +1291,15 @@ static int dvb_init(struct saa7134_dev *dev) | |||
1290 | fe->ops.enable_high_lnb_voltage = md8800_set_high_voltage; | 1291 | fe->ops.enable_high_lnb_voltage = md8800_set_high_voltage; |
1291 | } | 1292 | } |
1292 | break; | 1293 | break; |
1294 | case SAA7134_BOARD_AVERMEDIA_M103: | ||
1295 | saa7134_set_gpio(dev, 25, 0); | ||
1296 | msleep(10); | ||
1297 | saa7134_set_gpio(dev, 25, 1); | ||
1298 | dev->dvb.frontend = dvb_attach(mt352_attach, | ||
1299 | &avermedia_xc3028_mt352_dev, | ||
1300 | &dev->i2c_adap); | ||
1301 | attach_xc3028 = 1; | ||
1302 | break; | ||
1293 | default: | 1303 | default: |
1294 | wprintk("Huh? unknown DVB card?\n"); | 1304 | wprintk("Huh? unknown DVB card?\n"); |
1295 | break; | 1305 | break; |