aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-02-07 03:25:40 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-07 03:25:40 -0500
commit15207b2e73afb3aa6cd96a1b8c0b5016bcf90128 (patch)
treec358d3ba848457cbe7049475828e0b4cb2f086d5 /drivers/media/video/tuner-simple.c
parent8f1a58d0fccacb5d61aed8a63c3920c8acc155e7 (diff)
V4L/DVB (3278): Show debug for tuners trying to use unsupported video 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>
Diffstat (limited to 'drivers/media/video/tuner-simple.c')
-rw-r--r--drivers/media/video/tuner-simple.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index 61dd26a43976..aba0688d7c1c 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 i2c_client *c, unsigned int freq)
164 break; 164 break;
165 } 165 }
166 /* use default tuner_params if desired_type not available */ 166 /* use default tuner_params if desired_type not available */
167 if (desired_type != tun->params[j].type) 167 if (desired_type != tun->params[j].type) {
168 tuner_dbg("IFPCoff = %d: tuner_params undefined for tuner %d\n",
169 IFPCoff,t->type);
168 j = 0; 170 j = 0;
171 }
169 172
170 for (i = 0; i < tun->params[j].count; i++) { 173 for (i = 0; i < tun->params[j].count; i++) {
171 if (freq > tun->params[j].ranges[i].limit) 174 if (freq > tun->params[j].ranges[i].limit)