Contrary to CFR (derotator frequency), which changes signedness
depending on inversion, CRL_FREQ does not.

Signed-off-by: Reinhard Nißl <rni...@gmx.de>
---
 drivers/media/dvb-frontends/stb0899_algo.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/dvb-frontends/stb0899_algo.c 
b/drivers/media/dvb-frontends/stb0899_algo.c
index a338e06..93596e0 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);
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to