diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-01-30 21:57:54 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-01-30 21:57:54 -0500 |
commit | 28582fdec12c9fbadbae722393293d037b8f07e1 (patch) | |
tree | 84a8e88fef3d9f1d21a8e4b36ebb24ea565668cd /linux | |
parent | df231d4b39f89f136f57c52a1a8dff71350338e8 (diff) | |
download | mediapointer-dvb-s2-28582fdec12c9fbadbae722393293d037b8f07e1.tar.gz mediapointer-dvb-s2-28582fdec12c9fbadbae722393293d037b8f07e1.tar.bz2 |
show debug info for tuners trying to use unsupported video standards
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/tuner-simple.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c index 508227c3f..e6e808259 100644 --- a/linux/drivers/media/video/tuner-simple.c +++ b/linux/drivers/media/video/tuner-simple.c @@ -190,8 +190,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) |