Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176865
b: refs/heads/master
c: 30e8ca2
h: refs/heads/master
i:
  176863: d449073
v: v3
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 8d3b450 commit 20d9bdc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: 9efc1bdd25d9cd95362416674d8165b89f12b79f
refs/heads/master: 30e8ca2cb0ffd270a5c17366254c83cfb533ad14
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/frontends/stv090x.c
Original file line number Diff line number Diff line change
Expand Up @@ -3597,7 +3597,8 @@ static int stv090x_send_diseqc_msg(struct dvb_frontend *fe, struct dvb_diseqc_ma

reg = STV090x_READ_DEMOD(state, DISTXCTL);

STV090x_SETFIELD_Px(reg, DISTX_MODE_FIELD, 2);
STV090x_SETFIELD_Px(reg, DISTX_MODE_FIELD,
(state->config->diseqc_envelope_mode) ? 4 : 2);
STV090x_SETFIELD_Px(reg, DISEQC_RESET_FIELD, 1);
if (STV090x_WRITE_DEMOD(state, DISTXCTL, reg) < 0)
goto err;
Expand Down Expand Up @@ -3649,10 +3650,10 @@ static int stv090x_send_diseqc_burst(struct dvb_frontend *fe, fe_sec_mini_cmd_t
reg = STV090x_READ_DEMOD(state, DISTXCTL);

if (burst == SEC_MINI_A) {
mode = 3;
mode = (state->config->diseqc_envelope_mode) ? 5 : 3;
value = 0x00;
} else {
mode = 2;
mode = (state->config->diseqc_envelope_mode) ? 4 : 2;
value = 0xFF;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/frontends/stv090x.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ struct stv090x_config {

enum stv090x_i2crpt repeater_level;

bool diseqc_envelope_mode;

int (*tuner_init) (struct dvb_frontend *fe);
int (*tuner_set_mode) (struct dvb_frontend *fe, enum tuner_mode mode);
int (*tuner_set_frequency) (struct dvb_frontend *fe, u32 frequency);
Expand Down

0 comments on commit 20d9bdc

Please sign in to comment.