diff options
author | Igor M. Liplianin <liplianin@netup.ru> | 2009-10-17 07:58:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:24 -0500 |
commit | 29372a8daec4c1dca83e294006488b1d47dd965c (patch) | |
tree | 61e560e96ffc8b8cabec94962299abf09a91246b | |
parent | 9329fb5b731cd535a7c7d0690d30e872f29a33d3 (diff) |
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>
-rw-r--r-- | drivers/media/dvb/frontends/stv0900.h | 1 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_core.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stv0900.h b/drivers/media/dvb/frontends/stv0900.h index bf4e9b633044..446bdfc8ad10 100644 --- a/drivers/media/dvb/frontends/stv0900.h +++ b/drivers/media/dvb/frontends/stv0900.h | |||
@@ -36,6 +36,7 @@ struct stv0900_reg { | |||
36 | 36 | ||
37 | struct stv0900_config { | 37 | struct stv0900_config { |
38 | u8 demod_address; | 38 | u8 demod_address; |
39 | u8 demod_mode; | ||
39 | u32 xtal; | 40 | u32 xtal; |
40 | u8 clkmode;/* 0 for CLKI, 2 for XTALI */ | 41 | u8 clkmode;/* 0 for CLKI, 2 for XTALI */ |
41 | 42 | ||
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, | |||
1400 | 1400 | ||
1401 | dprintk("%s\n", __func__); | 1401 | dprintk("%s\n", __func__); |
1402 | 1402 | ||
1403 | if (temp_int != NULL) { | 1403 | if ((temp_int != NULL) && (p_init->demod_mode == STV0900_DUAL)) { |
1404 | state->internal = temp_int->internal; | 1404 | state->internal = temp_int->internal; |
1405 | (state->internal->dmds_used)++; | 1405 | (state->internal->dmds_used)++; |
1406 | dprintk("%s: Find Internal Structure!\n", __func__); | 1406 | dprintk("%s: Find Internal Structure!\n", __func__); |
@@ -1972,7 +1972,7 @@ struct dvb_frontend *stv0900_attach(const struct stv0900_config *config, | |||
1972 | case 0: | 1972 | case 0: |
1973 | case 1: | 1973 | case 1: |
1974 | init_params.dmd_ref_clk = config->xtal; | 1974 | init_params.dmd_ref_clk = config->xtal; |
1975 | init_params.demod_mode = STV0900_DUAL; | 1975 | init_params.demod_mode = config->demod_mode; |
1976 | init_params.rolloff = STV0900_35; | 1976 | init_params.rolloff = STV0900_35; |
1977 | init_params.path1_ts_clock = config->path1_mode; | 1977 | init_params.path1_ts_clock = config->path1_mode; |
1978 | init_params.tun1_maddress = config->tun1_maddress; | 1978 | init_params.tun1_maddress = config->tun1_maddress; |
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index 305f4710b5eb..44e5fade0488 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c | |||
@@ -400,6 +400,7 @@ static struct stv0900_reg stv0900_ts_regs[] = { | |||
400 | 400 | ||
401 | static struct stv0900_config netup_stv0900_config = { | 401 | static struct stv0900_config netup_stv0900_config = { |
402 | .demod_address = 0x68, | 402 | .demod_address = 0x68, |
403 | .demod_mode = 1, /* dual */ | ||
403 | .xtal = 8000000, | 404 | .xtal = 8000000, |
404 | .clkmode = 3,/* 0-CLKI, 2-XTALI, else AUTO */ | 405 | .clkmode = 3,/* 0-CLKI, 2-XTALI, else AUTO */ |
405 | .diseqc_mode = 2,/* 2/3 PWM */ | 406 | .diseqc_mode = 2,/* 2/3 PWM */ |