Commit 38431a98 authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab

[media] m88rs2000: LNB voltage control implemented

Trival patch to get it working with my cards stuff.
Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Acked-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6ae009a8
...@@ -416,9 +416,25 @@ static int m88rs2000_tab_set(struct m88rs2000_state *state, ...@@ -416,9 +416,25 @@ static int m88rs2000_tab_set(struct m88rs2000_state *state,
static int m88rs2000_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t volt) static int m88rs2000_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t volt)
{ {
deb_info("%s: %s\n", __func__, struct m88rs2000_state *state = fe->demodulator_priv;
volt == SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" : u8 data;
volt == SEC_VOLTAGE_18 ? "SEC_VOLTAGE_18" : "??");
data = m88rs2000_demod_read(state, 0xb2);
data |= 0x03; /* bit0 V/H, bit1 off/on */
switch (volt) {
case SEC_VOLTAGE_18:
data &= ~0x03;
break;
case SEC_VOLTAGE_13:
data &= ~0x03;
data |= 0x01;
break;
case SEC_VOLTAGE_OFF:
break;
}
m88rs2000_demod_write(state, 0xb2, data);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment