summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2007-09-23 04:39:17 +0400
committerManu Abraham <manu@linuxtv.org>2007-09-23 04:39:17 +0400
commit6f0be0f7c1866de4fd9108e5a75f936fbb37add1 (patch)
treed100164125727a3b30633ddf5ec209cb75091bcb /linux/drivers/media/dvb
parent0ce73ee5e54e9ca2d37f643704500788033c9157 (diff)
downloadmediapointer-dvb-s2-6f0be0f7c1866de4fd9108e5a75f936fbb37add1.tar.gz
mediapointer-dvb-s2-6f0be0f7c1866de4fd9108e5a75f936fbb37add1.tar.bz2
Really silly! Disabled all clocks and expected it to run.
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/stb0899_drv.c10
1 files changed, 3 insertions, 7 deletions
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)
{