[PATCH 049/141] V4L/DVB (3278): Show debug for tuners trying touse unsupported video standards

From: mchehab
Date: Mon Mar 20 2006 - 11:03:15 EST


From: Michael Krufky <mkrufky@xxxxxxxxxxx>
Date: 1139300740 -0200

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@xxxxxxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>
---

diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index 61dd26a..aba0688 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -164,8 +164,11 @@ static void default_set_tv_freq(struct i
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)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/