aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-dvb.c
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2009-01-17 10:18:26 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:23 -0400
commit579943f5487baa7f9fd8e3189a4f357d6b06c76d (patch)
tree8829327663e4ae9b9a0617e421868fe997ea1d5f /drivers/media/video/cx23885/cx23885-dvb.c
parent96318d0cca02a91b22a2e1a1097ffeea0b3becae (diff)
V4L/DVB (10267): Add support for TeVii S470 DVB-S2 PCI-e card.
TeVii S470 DVB-S2 PCI-e card contains cx23885 PCI-e bridge and cx24116 demodulator. http://www.linuxtv.org/wiki/index.php/TeVii_S470 The card tested by me (Igor). Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-dvb.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 3e0b04074e55..a6b62a7bf618 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -327,6 +327,10 @@ static struct cx24116_config tbs_cx24116_config = {
327 .demod_address = 0x05, 327 .demod_address = 0x05,
328}; 328};
329 329
330static struct cx24116_config tevii_cx24116_config = {
331 .demod_address = 0x55,
332};
333
330static int dvb_register(struct cx23885_tsport *port) 334static int dvb_register(struct cx23885_tsport *port)
331{ 335{
332 struct cx23885_dev *dev = port->dev; 336 struct cx23885_dev *dev = port->dev;
@@ -555,6 +559,16 @@ static int dvb_register(struct cx23885_tsport *port)
555 fe0->dvb.frontend->ops.set_voltage = tbs_set_voltage; 559 fe0->dvb.frontend->ops.set_voltage = tbs_set_voltage;
556 560
557 break; 561 break;
562 case CX23885_BOARD_TEVII_S470:
563 i2c_bus = &dev->i2c_bus[1];
564
565 fe0->dvb.frontend = dvb_attach(cx24116_attach,
566 &tevii_cx24116_config,
567 &i2c_bus->i2c_adap);
568 if (fe0->dvb.frontend != NULL)
569 fe0->dvb.frontend->ops.set_voltage = tbs_set_voltage;
570
571 break;
558 default: 572 default:
559 printk(KERN_INFO "%s: The frontend of your DVB/ATSC card " 573 printk(KERN_INFO "%s: The frontend of your DVB/ATSC card "
560 " isn't supported yet\n", 574 " isn't supported yet\n",