提交 f5648e8a 编写于 作者: T Tom Hughes 提交者: Linus Torvalds

[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: NTom Hughes <tom@compton.nu>
Signed-off-by: NManu Abraham <manu@linuxtv.org>
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4c09aa72
...@@ -1092,7 +1092,13 @@ static int dst_get_tuna(struct dst_state *state) ...@@ -1092,7 +1092,13 @@ static int dst_get_tuna(struct dst_state *state)
} }
if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0) if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0)
return 0; return 0;
if (state->dst_type == DST_TYPE_IS_SAT) {
state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3]; 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->decode_lock = 1;
state->diseq_flags |= HAS_LOCK; state->diseq_flags |= HAS_LOCK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册