]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (3278): Show debug for tuners trying to use unsupported video standards
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 7 Feb 2006 08:25:40 +0000 (06:25 -0200)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 7 Feb 2006 08:25:40 +0000 (06:25 -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@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-simple.c

index 61dd26a439762279e7f19bbfd09851ac88002b08..aba0688d7c1ce85be33ae52b026253c14df6ab8c 100644 (file)
@@ -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)