aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/bt8xx
diff options
context:
space:
mode:
authorTom Hughes <tom@compton.nu>2005-11-09 00:35:22 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:02 -0500
commitf5648e8a68daec5fd1c42c1500c662967adb8f6c (patch)
treed8f95f28a5bda82edc5592643f29efbea443c263 /drivers/media/dvb/bt8xx
parent4c09aa72b60f30650527afb384c1b3b1cb56aeea (diff)
[PATCH] dvb: dst: fix DST DVB-S get_frequency
fix DST DVB-S get_frequency - fixes a bug that caused the returned frequency to wrong Signed-off-by: Tom Hughes <tom@compton.nu> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Cc: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index 418ffbbef966..bc833a55438f 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -1092,7 +1092,13 @@ static int dst_get_tuna(struct dst_state *state)
1092 } 1092 }
1093 if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0) 1093 if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0)
1094 return 0; 1094 return 0;
1095 state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3]; 1095
1096 if (state->dst_type == DST_TYPE_IS_SAT) {
1097 state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3];
1098 } else {
1099 state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 16) + (state->rx_tuna[3] << 8) + state->rx_tuna[4];
1100 }
1101 state->decode_freq = state->decode_freq * 1000;
1096 state->decode_lock = 1; 1102 state->decode_lock = 1;
1097 state->diseq_flags |= HAS_LOCK; 1103 state->diseq_flags |= HAS_LOCK;
1098 1104