summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2013-06-02 20:03:13 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-09 01:15:09 +0200
commit7db462cdf6352af6d1ff85e52ffa82539f1c11e4 (patch)
tree987e4270fae8936ad7b4e3707a40f6ead7f42569 /drivers/media/dvb-frontends
parent[media] stb0899: use autodetected inversion instead of configured inversion (diff)
downloadlinux-7db462cdf6352af6d1ff85e52ffa82539f1c11e4.tar.xz
linux-7db462cdf6352af6d1ff85e52ffa82539f1c11e4.zip
[media] stb0899: sign of CRL_FREQ doesn't depend on inversion
Contrary to CFR (derotator frequency), which changes signedness depending on inversion, CRL_FREQ does not. Signed-off-by: Reinhard Nißl <rnissl@gmx.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/stb0899_algo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/stb0899_algo.c b/drivers/media/dvb-frontends/stb0899_algo.c
index a338e06defd1..93596e0e640b 100644
--- a/drivers/media/dvb-frontends/stb0899_algo.c
+++ b/drivers/media/dvb-frontends/stb0899_algo.c
@@ -1504,9 +1504,7 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
else
internal->inversion = IQ_SWAP_OFF;
- offsetfreq *= internal->inversion;
-
- internal->freq = internal->freq - offsetfreq;
+ internal->freq = internal->freq + offsetfreq;
internal->srate = stb0899_dvbs2_get_srate(state);
reg = STB0899_READ_S2REG(STB0899_S2DEMOD, UWP_STAT2);