Skip to content

Commit

Permalink
V4L/DVB (4175): Fix a bug in tuner detection
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent de1e6ec commit b32474c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions drivers/media/dvb/bt8xx/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b32474c

Please sign in to comment.