[media] rtl820t: Add a debug msg when PLL gets locked
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 7 Apr 2013 22:47:49 +0000 (19:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 17 Apr 2013 00:25:13 +0000 (21:25 -0300)
[ 2255.342797] r820t 3-001a: generic_set_freq: PLL locked on frequency 725476191 Hz, gain=45

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
drivers/media/tuners/r820t.c

index 5cd8256a203ef8d46bbe269d48f9d40c68c1fd60..1821cf192642f23ca4fa77b0828d9de9455ef156 100644 (file)
@@ -1215,6 +1215,12 @@ static int generic_set_freq(struct dvb_frontend *fe,
                goto err;
 
        rc = r820t_sysfreq_sel(priv, freq, type, std, delsys);
+       if (rc < 0)
+               goto err;
+
+       tuner_dbg("%s: PLL locked on frequency %d Hz, gain=%d\n",
+                 __func__, freq, r820t_read_gain(priv));
+
 err:
 
        if (rc < 0)