aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2007-09-22 20:39:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:16 -0500
commitde29eb82595684c937cf0e2578479f4fcb9c9e40 (patch)
tree98e634d5e9e56b4509fc7000a92b3106e928be24
parent41e1151b33cce7e19cfba1648d05abd34a0ba492 (diff)
V4L/DVB (9396): Fix clocks at stb0899
Really silly! Disabled all clocks and expected it to run. Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/stb0899_drv.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c
index 598e3348d534..db620f02eda9 100644
--- a/drivers/media/dvb/frontends/stb0899_drv.c
+++ b/drivers/media/dvb/frontends/stb0899_drv.c
@@ -251,7 +251,6 @@ int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg)
251 dprintk(verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x", 251 dprintk(verbose, FE_ERROR, 1, "Reg=[0x%02x], data=%02x",
252 reg, buf); 252 reg, buf);
253 253
254
255 return (unsigned int)buf; 254 return (unsigned int)buf;
256} 255}
257 256
@@ -812,6 +811,13 @@ static int stb0899_wakeup(struct dvb_frontend *fe)
812 int rc; 811 int rc;
813 struct stb0899_state *state = fe->demodulator_priv; 812 struct stb0899_state *state = fe->demodulator_priv;
814 813
814 if ((rc = stb0899_write_reg(state, STB0899_SYNTCTRL, STB0899_SELOSCI)))
815 return rc;
816 /* Activate all clocks; DVB-S2 registers are inaccessible otherwise. */
817 if ((rc = stb0899_write_reg(state, STB0899_STOPCLK1, 0x00)))
818 return rc;
819 if ((rc = stb0899_write_reg(state, STB0899_STOPCLK2, 0x00)))
820 return rc;
815 821
816 return 0; 822 return 0;
817} 823}
@@ -1825,7 +1831,6 @@ static int stb0899_get_params(struct dvb_frontend *fe, struct dvbfe_params *para
1825 dprintk(verbose, FE_DEBUG, 1, "Get DSS params"); 1831 dprintk(verbose, FE_DEBUG, 1, "Get DSS params");
1826 params->delsys.dss.symbol_rate = internal->srate; 1832 params->delsys.dss.symbol_rate = internal->srate;
1827 params->delsys.dss.modulation = DVBFE_MOD_QPSK; 1833 params->delsys.dss.modulation = DVBFE_MOD_QPSK;
1828
1829 break; 1834 break;
1830 case DVBFE_DELSYS_DVBS2: 1835 case DVBFE_DELSYS_DVBS2:
1831 dprintk(verbose, FE_DEBUG, 1, "Get DVB-S2 params"); 1836 dprintk(verbose, FE_DEBUG, 1, "Get DVB-S2 params");