From: Reinhard Nißl Date: Sun, 2 Jun 2013 18:03:13 +0000 (-0300) Subject: [media] stb0899: sign of CRL_FREQ doesn't depend on inversion X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7db462cdf6352af6d1ff85e52ffa82539f1c11e4;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- 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);