aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2007-07-02 09:36:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 17:53:14 -0200
commit381d8047031d8b7c2aca4b0dd624108c807262ec (patch)
tree12f4a8a6ef40c0d3152082aed7e87f8ed791cfee /drivers/media/dvb
parentbb29cc6ffa15bc2c4f2c014a44d995368244e7ba (diff)
V4L/DVB (9384): FIX: register value is not reset to 0 after write
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/stb0899_algo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c
index 876931527c7..914a82544c7 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -692,24 +692,28 @@ enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state)
case STB0899_FEC_1_2: /* 13 */
STB0899_SETFIELD_VAL(DEMAPVIT_KDIVIDER, reg, 0x1a);
stb0899_write_reg(state, STB0899_DEMAPVIT, reg);
+ reg = 0;
STB0899_SETFIELD_VAL(BETA, reg, betaTab[0][clnI]);
stb0899_write_reg(state, STB0899_BCLC, reg);
break;
case STB0899_FEC_2_3: /* 18 */
STB0899_SETFIELD_VAL(DEMAPVIT_KDIVIDER, reg, 44);
stb0899_write_reg(state, STB0899_DEMAPVIT, reg);
+ reg = 0;
STB0899_SETFIELD_VAL(BETA, reg, betaTab[1][clnI]);
stb0899_write_reg(state, STB0899_BCLC, reg);
break;
case STB0899_FEC_3_4: /* 21 */
STB0899_SETFIELD_VAL(DEMAPVIT_KDIVIDER, reg, 60);
stb0899_write_reg(state, STB0899_DEMAPVIT, reg);
+ reg = 0;
STB0899_SETFIELD_VAL(BETA, reg, betaTab[2][clnI]);
stb0899_write_reg(state, STB0899_BCLC, reg);
break;
case STB0899_FEC_5_6: /* 24 */
STB0899_SETFIELD_VAL(DEMAPVIT_KDIVIDER, reg, 75);
stb0899_write_reg(state, STB0899_DEMAPVIT, reg);
+ reg = 0;
STB0899_SETFIELD_VAL(BETA, reg, betaTab[3][clnI]);
stb0899_write_reg(state, STB0899_BCLC, reg);
break;
@@ -722,6 +726,7 @@ enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state)
case STB0899_FEC_7_8: /* 26 */
STB0899_SETFIELD_VAL(DEMAPVIT_KDIVIDER, reg, 94);
stb0899_write_reg(state, STB0899_DEMAPVIT, reg);
+ reg = 0;
STB0899_SETFIELD_VAL(BETA, reg, betaTab[4][clnI]);
stb0899_write_reg(state, STB0899_BCLC, reg);
break;