summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv0900_core.c
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@netup.ru>2009-10-17 08:58:26 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:41:24 -0200
commit29372a8daec4c1dca83e294006488b1d47dd965c (patch)
tree61e560e96ffc8b8cabec94962299abf09a91246b /drivers/media/dvb/frontends/stv0900_core.c
parent9329fb5b731cd535a7c7d0690d30e872f29a33d3 (diff)
downloadop-kernel-dev-29372a8daec4c1dca83e294006488b1d47dd965c.zip
op-kernel-dev-29372a8daec4c1dca83e294006488b1d47dd965c.tar.gz
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 4729be7..c8c72f5 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;
OpenPOWER on IntegriCloud