Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65878
b: refs/heads/master
c: f139fa7
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 42b7c0d commit b06c81f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6a3f14035fe94c0925fea62f3d3a7a1ab44c1f1
refs/heads/master: f139fa71c03d80c1d1ee60aa4b0a3ec7a14d45f9
22 changes: 12 additions & 10 deletions trunk/drivers/media/video/cx23885/cx23885-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ static struct lgdt330x_config fusionhdtv_5_express = {
static int dvb_register(struct cx23885_tsport *port)
{
struct cx23885_dev *dev = port->dev;
struct cx23885_i2c *i2c_bus = NULL;

/* init struct videobuf_dvb */
port->dvb.name = dev->name;
Expand All @@ -120,33 +121,35 @@ static int dvb_register(struct cx23885_tsport *port)
switch (dev->board) {
case CX23885_BOARD_HAUPPAUGE_HVR1250:
case CX23885_BOARD_HAUPPAUGE_HVR1800:
i2c_bus = &dev->i2c_bus[0];
port->dvb.frontend = dvb_attach(s5h1409_attach,
&hauppauge_generic_config,
&dev->i2c_bus[0].i2c_adap);
&i2c_bus->i2c_adap);
if (port->dvb.frontend != NULL) {
dvb_attach(mt2131_attach, port->dvb.frontend,
&dev->i2c_bus[0].i2c_adap,
&i2c_bus->i2c_adap,
&hauppauge_generic_tunerconfig, 0);
}
break;
case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
i2c_bus = &dev->i2c_bus[0];
port->dvb.frontend = dvb_attach(s5h1409_attach,
&hauppauge_hvr1800lp_config,
&dev->i2c_bus[0].i2c_adap);
&i2c_bus->i2c_adap);
if (port->dvb.frontend != NULL) {
dvb_attach(mt2131_attach, port->dvb.frontend,
&dev->i2c_bus[0].i2c_adap,
&i2c_bus->i2c_adap,
&hauppauge_generic_tunerconfig, 0);
}
break;
case CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP:
i2c_bus = &dev->i2c_bus[0];
port->dvb.frontend = dvb_attach(lgdt330x_attach,
&fusionhdtv_5_express,
&dev->i2c_bus[0].i2c_adap);
&i2c_bus->i2c_adap);
if (port->dvb.frontend != NULL) {
dvb_attach(dvb_pll_attach, port->dvb.frontend,
0x61, &dev->i2c_bus[0].i2c_adap,
DVB_PLL_LG_TDVS_H06XF);
dvb_attach(dvb_pll_attach, port->dvb.frontend, 0x61,
&i2c_bus->i2c_adap, DVB_PLL_LG_TDVS_H06XF);
}
break;
default:
Expand All @@ -160,8 +163,7 @@ static int dvb_register(struct cx23885_tsport *port)
}

/* Put the analog decoder in standby to keep it quiet */
/* Assumption here: analog decoder is only on i2c bus 0 */
cx23885_call_i2c_clients (&dev->i2c_bus[0], TUNER_SET_STANDBY, NULL);
cx23885_call_i2c_clients(i2c_bus, TUNER_SET_STANDBY, NULL);

/* register everything */
return videobuf_dvb_register(&port->dvb, THIS_MODULE, port,
Expand Down

0 comments on commit b06c81f

Please sign in to comment.