[media] stb0899: sign of CRL_FREQ doesn't depend on inversion
authorReinhard Nißl <rnissl@gmx.de>
Sun, 2 Jun 2013 18:03:13 +0000 (15:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Jun 2013 23:15:09 +0000 (20:15 -0300)
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>
drivers/media/dvb-frontends/stb0899_algo.c

index a338e06defd15eb7bbd62136cdb60c96c71614a9..93596e0e640b2a084f65e591c7be6ab3c1107f81 100644 (file)
@@ -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);