V4L/DVB (9390): Offset Freq has been set in reg
authorMarko Schluessler <marco@lordzodiac.de>
Fri, 21 Sep 2007 21:40:14 +0000 (18:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:15 +0000 (17:53 -0200)
Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_algo.c

index 5b55b0dea7e4f62534eb8f32d9bd5f323d56ab46..3fbf00ed79d30460e4ed94f1e9199aff59cb1b16 100644 (file)
@@ -1419,7 +1419,7 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
                        /* Set the Nominal frequency to the found frequency offset for the next reacquire*/
                        reg = STB0899_READ_S2REG(STB0899_S2DEMOD, CRL_NOM_FREQ);
                        STB0899_SETFIELD_VAL(CRL_NOM_FREQ, reg, offsetfreq);
-                       stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CRL_NOM_FREQ, STB0899_OFF0_CRL_NOM_FREQ, offsetfreq);
+                       stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CRL_NOM_FREQ, STB0899_OFF0_CRL_NOM_FREQ, reg);
                        stb0899_dvbs2_reacquire(state);
                        internal->status = stb0899_dvbs2_get_fec_status(state, searchTime);
                        i++;
@@ -1450,7 +1450,7 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state)
                                        /* Set the Nominal frequency to the found frequency offset for the next reacquire*/
                                        reg = STB0899_READ_S2REG(STB0899_S2DEMOD, CRL_NOM_FREQ);
                                        STB0899_SETFIELD_VAL(CRL_NOM_FREQ, reg, offsetfreq);
-                                       stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CRL_NOM_FREQ, STB0899_OFF0_CRL_NOM_FREQ, offsetfreq);
+                                       stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CRL_NOM_FREQ, STB0899_OFF0_CRL_NOM_FREQ, reg);
 
                                        stb0899_dvbs2_reacquire(state);
                                        internal->status = stb0899_dvbs2_get_fec_status(state, searchTime);