summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorManu Abraham <devnull@localhost>2005-09-21 16:29:09 +0000
committerManu Abraham <devnull@localhost>2005-09-21 16:29:09 +0000
commit7f621d710a79176101b7a7a866c2792a942ba95d (patch)
tree29f8864a8c064b147c78d24452a5455e25476963 /linux
parent7dd41c0b7680d2ff2175c94e3ec4581111a718fb (diff)
downloadmediapointer-dvb-s2-7f621d710a79176101b7a7a866c2792a942ba95d.tar.gz
mediapointer-dvb-s2-7f621d710a79176101b7a7a866c2792a942ba95d.tar.bz2
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>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dst.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c
index b07788d23..392c9477c 100644
--- a/linux/drivers/media/dvb/bt8xx/dst.c
+++ b/linux/drivers/media/dvb/bt8xx/dst.c
@@ -1092,7 +1092,13 @@ static int dst_get_tuna(struct dst_state *state)
}
if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0)
return 0;
- state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3];
+
+ if (state->dst_type == DST_TYPE_IS_SAT) {
+ state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3];
+ } else {
+ state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 16) + (state->rx_tuna[3] << 8) + state->rx_tuna[4];
+ }
+ state->decode_freq = state->decode_freq * 1000;
state->decode_lock = 1;
state->diseq_flags |= HAS_LOCK;