From: Manu Abraham Date: Fri, 9 Sep 2005 20:03:02 +0000 (-0700) Subject: [PATCH] dvb: dst: fix DVB-C tuning X-Git-Tag: v2.6.14-rc1~398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62867429d0d79e47e19ceedc3133efe74993932f;p=profile%2Fivi%2Fkernel-x86-ivi.git [PATCH] dvb: dst: fix DVB-C tuning Fix BUG in DVB-C frequency setting. Thanks to Peng Cao Signed-off-by: Manu Abraham Signed-off-by: Johannes Stezenbach Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c index eef3448..34a837a 100644 --- a/drivers/media/dvb/bt8xx/dst.c +++ b/drivers/media/dvb/bt8xx/dst.c @@ -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;