[PATCH] dvb: flexcop: DiSeqC fix
authorJohannes Stezenbach <js@linuxtv.org>
Tue, 17 May 2005 04:54:19 +0000 (21:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:26 +0000 (07:59 -0700)
Fixed DiSeqC switching, which was wrongly taking over from skystar2.c.  Thanks
to Joerg Riechardt for finding the bug and testing the Fix.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/b2c2/flexcop-fe-tuner.c

index b3dd16fb5bbdecc8916a3dbba0581ae0e7cd76b4..71be400e9aeb710316ae65bf1860bb66323f51e9 100644 (file)
@@ -79,8 +79,8 @@ static int flexcop_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
 
        v.lnb_switch_freq_200.LNB_CTLPrescaler_sig = 1; /* divide by 2 */
 
-       v.lnb_switch_freq_200.LNB_CTLHighCount_sig =
-               v.lnb_switch_freq_200.LNB_CTLLowCount_sig  = ax;
+       v.lnb_switch_freq_200.LNB_CTLHighCount_sig = ax;
+       v.lnb_switch_freq_200.LNB_CTLLowCount_sig  = ax == 0 ? 0x1ff : ax;
 
        return fc->write_ibi_reg(fc,lnb_switch_freq_200,v);
 }