V4L/DVB (6190): cx23885: GPIO fix for non HVR1800lp boards
The HVR1250 and HVR1800 boards need the s5h1409 demod GPIO enabled. Signed-off-by: Steven Toth <stoth@hauppauge.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
415927dcd1
commit
fc959befe0
1 changed files with 19 additions and 1 deletions
|
@ -80,6 +80,15 @@ static struct videobuf_queue_ops dvb_qops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct s5h1409_config hauppauge_generic_config = {
|
static struct s5h1409_config hauppauge_generic_config = {
|
||||||
|
.demod_address = 0x32 >> 1,
|
||||||
|
.output_mode = S5H1409_SERIAL_OUTPUT,
|
||||||
|
.gpio = S5H1409_GPIO_ON,
|
||||||
|
.if_freq = 44000,
|
||||||
|
.inversion = S5H1409_INVERSION_OFF,
|
||||||
|
.status_mode = S5H1409_DEMODLOCKING
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct s5h1409_config hauppauge_hvr1800lp_config = {
|
||||||
.demod_address = 0x32 >> 1,
|
.demod_address = 0x32 >> 1,
|
||||||
.output_mode = S5H1409_SERIAL_OUTPUT,
|
.output_mode = S5H1409_SERIAL_OUTPUT,
|
||||||
.gpio = S5H1409_GPIO_OFF,
|
.gpio = S5H1409_GPIO_OFF,
|
||||||
|
@ -103,7 +112,6 @@ static int dvb_register(struct cx23885_tsport *port)
|
||||||
switch (dev->board) {
|
switch (dev->board) {
|
||||||
case CX23885_BOARD_HAUPPAUGE_HVR1250:
|
case CX23885_BOARD_HAUPPAUGE_HVR1250:
|
||||||
case CX23885_BOARD_HAUPPAUGE_HVR1800:
|
case CX23885_BOARD_HAUPPAUGE_HVR1800:
|
||||||
case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
|
|
||||||
port->dvb.frontend = dvb_attach(s5h1409_attach,
|
port->dvb.frontend = dvb_attach(s5h1409_attach,
|
||||||
&hauppauge_generic_config,
|
&hauppauge_generic_config,
|
||||||
&dev->i2c_bus[0].i2c_adap);
|
&dev->i2c_bus[0].i2c_adap);
|
||||||
|
@ -113,6 +121,16 @@ static int dvb_register(struct cx23885_tsport *port)
|
||||||
&hauppauge_generic_tunerconfig, 0);
|
&hauppauge_generic_tunerconfig, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
|
||||||
|
port->dvb.frontend = dvb_attach(s5h1409_attach,
|
||||||
|
&hauppauge_hvr1800lp_config,
|
||||||
|
&dev->i2c_bus[0].i2c_adap);
|
||||||
|
if (port->dvb.frontend != NULL) {
|
||||||
|
dvb_attach(mt2131_attach, port->dvb.frontend,
|
||||||
|
&dev->i2c_bus[0].i2c_adap,
|
||||||
|
&hauppauge_generic_tunerconfig, 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n",
|
printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n",
|
||||||
dev->name);
|
dev->name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue