summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2006-06-21 17:28:31 +0400
committerManu Abraham <manu@linuxtv.org>2006-06-21 17:28:31 +0400
commit56256e69f16c31749cfa94ef90fee9481615d798 (patch)
treed062722cfa2645c3f8f2cd53fc2f7db30de0827e /linux/drivers/media/dvb
parent61b6e23fa3c731e4831494b64f440c407c3e838a (diff)
downloadmediapointer-dvb-s2-56256e69f16c31749cfa94ef90fee9481615d798.tar.gz
mediapointer-dvb-s2-56256e69f16c31749cfa94ef90fee9481615d798.tar.bz2
fix a bug in tuner detection
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dst.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c
index 4a70d2a6f..ff562fdae 100644
--- a/linux/drivers/media/dvb/bt8xx/dst.c
+++ b/linux/drivers/media/dvb/bt8xx/dst.c
@@ -1103,10 +1103,17 @@ static int dst_get_device_id(struct dst_state *state)
// if (p_dst_type->tuner_type != TUNER_TYPE_MULTI) {
/* Multiple tuners */
if (p_dst_type->tuner_type & TUNER_TYPE_MULTI) {
- /* STV0299 check */
- if (dst_check_stv0299(state) < 0)
- dprintk(verbose, DST_ERROR, 1, "Unsupported");
- /* MB86A15 check */
+ switch (use_dst_type) {
+ case DST_TYPE_IS_SAT:
+ /* STV0299 check */
+ if (dst_check_stv0299(state) < 0) {
+ dprintk(verbose, DST_ERROR, 1, "Unsupported");
+ state->tuner_type = TUNER_TYPE_MB86A15;
+ }
+ break;
+ default:
+ break;
+ }
if (dst_check_mb86a15(state) < 0)
dprintk(verbose, DST_ERROR, 1, "Unsupported");
/* Single tuner */