summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv0900_core.c
diff options
context:
space:
mode:
authorIgor M. Liplianin2009-10-17 13:58:26 +0200
committerMauro Carvalho Chehab2009-12-05 21:41:24 +0100
commit29372a8daec4c1dca83e294006488b1d47dd965c (patch)
tree61e560e96ffc8b8cabec94962299abf09a91246b /drivers/media/dvb/frontends/stv0900_core.c
parentV4L/DVB (13335): stv0900: fix diseqc support for NetUP card (diff)
downloadkernel-qcow2-linux-29372a8daec4c1dca83e294006488b1d47dd965c.tar.gz
kernel-qcow2-linux-29372a8daec4c1dca83e294006488b1d47dd965c.tar.xz
kernel-qcow2-linux-29372a8daec4c1dca83e294006488b1d47dd965c.zip
V4L/DVB (13336): stv0900: config definition for single/dual mode
Signed-off-by: Igor M. Liplianin <liplianin@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stv0900_core.c')
-rw-r--r--drivers/media/dvb/frontends/stv0900_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c
index 4729be7fdf7b..c8c72f56fdd9 100644
--- a/drivers/media/dvb/frontends/stv0900_core.c
+++ b/drivers/media/dvb/frontends/stv0900_core.c
@@ -1400,7 +1400,7 @@ static enum fe_stv0900_error stv0900_init_internal(struct dvb_frontend *fe,
dprintk("%s\n", __func__);
- if (temp_int != NULL) {
+ if ((temp_int != NULL) && (p_init->demod_mode == STV0900_DUAL)) {
state->internal = temp_int->internal;
(state->internal->dmds_used)++;
dprintk("%s: Find Internal Structure!\n", __func__);
@@ -1972,7 +1972,7 @@ struct dvb_frontend *stv0900_attach(const struct stv0900_config *config,
case 0:
case 1:
init_params.dmd_ref_clk = config->xtal;
- init_params.demod_mode = STV0900_DUAL;
+ init_params.demod_mode = config->demod_mode;
init_params.rolloff = STV0900_35;
init_params.path1_ts_clock = config->path1_mode;
init_params.tun1_maddress = config->tun1_maddress;