From 6f0be0f7c1866de4fd9108e5a75f936fbb37add1 Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Sun, 23 Sep 2007 04:39:17 +0400 Subject: Really silly! Disabled all clocks and expected it to run. From: Manu Abraham Signed-off-by: Manu Abraham --- linux/drivers/media/dvb/frontends/stb0899_drv.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'linux/drivers/media/dvb/frontends') diff --git a/linux/drivers/media/dvb/frontends/stb0899_drv.c b/linux/drivers/media/dvb/frontends/stb0899_drv.c index f43b2cf8e..d83dac9b4 100644 --- a/linux/drivers/media/dvb/frontends/stb0899_drv.c +++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c @@ -251,14 +251,13 @@ int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) dprintk(verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x", reg, buf); - return (unsigned int)buf; } int stb0899_read_reg(struct stb0899_state *state, unsigned int reg) { int result; - + result = _stb0899_read_reg(state, reg); /* * Bug ID 9: @@ -888,7 +887,6 @@ static int stb0899_wakeup(struct dvb_frontend *fe) int rc; struct stb0899_state *state = fe->demodulator_priv; -#if 0 if ((rc = stb0899_write_reg(state, STB0899_SYNTCTRL, STB0899_SELOSCI))) return rc; /* Activate all clocks; DVB-S2 registers are inaccessible otherwise. */ @@ -896,7 +894,6 @@ static int stb0899_wakeup(struct dvb_frontend *fe) return rc; if ((rc = stb0899_write_reg(state, STB0899_STOPCLK2, 0x00))) return rc; -#endif return 0; } @@ -1618,7 +1615,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa // internal->err_ctrl = stb0899_read_reg(state, STB0899_ERRCTRL1); // dprintk(verbose, FE_DEBUG, 1, "VSTATUS=0x%02x", internal->v_status); // dprintk(verbose, FE_DEBUG, 1, "ERR_CTRL=0x%02x", internal->err_ctrl); - + return DVBFE_ALGO_SEARCH_SUCCESS; } else { internal->lock = 0; @@ -1959,7 +1956,6 @@ static int stb0899_get_params(struct dvb_frontend *fe, struct dvbfe_params *para dprintk(verbose, FE_DEBUG, 1, "Get DSS params"); params->delsys.dss.symbol_rate = internal->srate; params->delsys.dss.modulation = DVBFE_MOD_QPSK; - break; case DVBFE_DELSYS_DVBS2: dprintk(verbose, FE_DEBUG, 1, "Get DVB-S2 params"); @@ -1971,7 +1967,7 @@ static int stb0899_get_params(struct dvb_frontend *fe, struct dvbfe_params *para } return 0; -} +} static enum dvbfe_algo stb0899_frontend_algo(struct dvb_frontend *fe) { -- cgit v1.2.3