Skip to content

Commit

Permalink
V4L/DVB (3278): Show debug for tuners trying to use unsupported video…
Browse files Browse the repository at this point in the history
… standards

With tuner_debug enabled, if a tuner tries to use a video standard that doesn't
have a matching tuner_params defined, the IFPCoff value and tuner number will
be displayed, and the default tuner_params entry will be used.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Feb 7, 2006
1 parent 8f1a58d commit 15207b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
break;
}
/* use default tuner_params if desired_type not available */
if (desired_type != tun->params[j].type)
if (desired_type != tun->params[j].type) {
tuner_dbg("IFPCoff = %d: tuner_params undefined for tuner %d\n",
IFPCoff,t->type);
j = 0;
}

for (i = 0; i < tun->params[j].count; i++) {
if (freq > tun->params[j].ranges[i].limit)
Expand Down

0 comments on commit 15207b2

Please sign in to comment.