Commit de29eb82 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB (9396): Fix clocks at stb0899

Really silly! Disabled all clocks and expected it to run.
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 41e1151b
...@@ -251,7 +251,6 @@ int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) ...@@ -251,7 +251,6 @@ int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg)
dprintk(verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x", dprintk(verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x",
reg, buf); reg, buf);
return (unsigned int)buf; return (unsigned int)buf;
} }
...@@ -812,6 +811,13 @@ static int stb0899_wakeup(struct dvb_frontend *fe) ...@@ -812,6 +811,13 @@ static int stb0899_wakeup(struct dvb_frontend *fe)
int rc; int rc;
struct stb0899_state *state = fe->demodulator_priv; struct stb0899_state *state = fe->demodulator_priv;
if ((rc = stb0899_write_reg(state, STB0899_SYNTCTRL, STB0899_SELOSCI)))
return rc;
/* Activate all clocks; DVB-S2 registers are inaccessible otherwise. */
if ((rc = stb0899_write_reg(state, STB0899_STOPCLK1, 0x00)))
return rc;
if ((rc = stb0899_write_reg(state, STB0899_STOPCLK2, 0x00)))
return rc;
return 0; return 0;
} }
...@@ -1825,7 +1831,6 @@ static int stb0899_get_params(struct dvb_frontend *fe, struct dvbfe_params *para ...@@ -1825,7 +1831,6 @@ static int stb0899_get_params(struct dvb_frontend *fe, struct dvbfe_params *para
dprintk(verbose, FE_DEBUG, 1, "Get DSS params"); dprintk(verbose, FE_DEBUG, 1, "Get DSS params");
params->delsys.dss.symbol_rate = internal->srate; params->delsys.dss.symbol_rate = internal->srate;
params->delsys.dss.modulation = DVBFE_MOD_QPSK; params->delsys.dss.modulation = DVBFE_MOD_QPSK;
break; break;
case DVBFE_DELSYS_DVBS2: case DVBFE_DELSYS_DVBS2:
dprintk(verbose, FE_DEBUG, 1, "Get DVB-S2 params"); dprintk(verbose, FE_DEBUG, 1, "Get DVB-S2 params");
......
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