summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2005-07-20 11:16:34 +0000
committerAndrew de Quincy <devnull@localhost>2005-07-20 11:16:34 +0000
commite0970bb0e80057bc7e2f1c8c3e3a40032e030b63 (patch)
tree9fb6284c15cd47d124a594122bf96c3ce2eb1479 /linux/drivers/media/dvb
parent313069c8550b15235fca2ae186b37c0cb9ff357e (diff)
downloadmediapointer-dvb-s2-e0970bb0e80057bc7e2f1c8c3e3a40032e030b63.tar.gz
mediapointer-dvb-s2-e0970bb0e80057bc7e2f1c8c3e3a40032e030b63.tar.bz2
Set initial frequency offset.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/s5h1420.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/s5h1420.c b/linux/drivers/media/dvb/frontends/s5h1420.c
index 549c487aa..c59e20272 100644
--- a/linux/drivers/media/dvb/frontends/s5h1420.c
+++ b/linux/drivers/media/dvb/frontends/s5h1420.c
@@ -649,8 +649,8 @@ static int s5h1420_set_frontend(struct dvb_frontend* fe,
/* start QPSK */
s5h1420_writereg(state, 0x05, s5h1420_readreg(state, 0x05) | 1);
- /* frequency offset must be 0 initially */
- s5h1420_setfreqoffset(state, 0);
+ /* set initial offset */
+ s5h1420_setfreqoffset(state, p->frequency - state->tunedfreq);
/* set the reset of the parameters */
s5h1420_setsymbolrate(state, p);