]> err.no Git - linux-2.6/commitdiff
[PATCH] dvb: dst: fix DVB-C tuning
authorManu Abraham <manu@linuxtv.org>
Fri, 9 Sep 2005 20:03:02 +0000 (13:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:44 +0000 (13:57 -0700)
Fix BUG in DVB-C frequency setting.  Thanks to Peng Cao <caopeng75@gmail.com>

Signed-off-by: Manu Abraham <manu@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/bt8xx/dst.c

index eef34481d535f8b4a85b4128a49d63ff0fd14b8e..34a837a1abf4f1d5beeef0dd0dec301eba984d87 100644 (file)
@@ -359,6 +359,7 @@ static int dst_set_freq(struct dst_state *state, u32 freq)
                state->tx_tuna[3] = (freq >> 8) & 0xff;
                state->tx_tuna[4] = (u8) freq;
        } else if (state->dst_type == DST_TYPE_IS_CABLE) {
+               freq = freq / 1000;
                state->tx_tuna[2] = (freq >> 16) & 0xff;
                state->tx_tuna[3] = (freq >> 8) & 0xff;
                state->tx_tuna[4] = (u8) freq;