]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3084): Added a new debug msg to help identifying tuner Problems
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:12 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:12 +0000 (15:25 -0200)
- Added a new debug msg to help identifying tuner Problems

Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/video/tuner-simple.c

index 528e1205da465d6d6adb5543b38bf6f8a59485b8..9bd52993d3668448ed88bf6ae078ebb76a8677fe 100644 (file)
@@ -913,6 +913,13 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
        }
 
        div=freq + IFPCoff + offset;
+
+       tuner_dbg("Freq= %d.%02d MHz, V_IF=%d.%02d MHz, Offset=%d.%02d MHz, div=%0d\n",
+                                       freq / 16, freq % 16 * 100 / 16,
+                                       IFPCoff / 16, IFPCoff % 16 * 100 / 16,
+                                       offset / 16, offset % 16 * 100 / 16,
+                                       div);
+
        if (t->type == TUNER_PHILIPS_SECAM && freq < t->freq) {
                buffer[0] = tun->config;
                buffer[1] = config;