diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-08 00:47:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-17 02:25:13 +0200 |
commit | da31934fb87dbe907d2ea77f300313f280792d8d (patch) | |
tree | 4633986e8ee884d2b6a160136d3c9b19f1ea3ba8 /drivers/media/tuners/r820t.c | |
parent | [media] r820t: proper lock and set the I2C gate (diff) | |
download | linux-da31934fb87dbe907d2ea77f300313f280792d8d.tar.xz linux-da31934fb87dbe907d2ea77f300313f280792d8d.zip |
[media] rtl820t: Add a debug msg when PLL gets locked
[ 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>
Diffstat (limited to 'drivers/media/tuners/r820t.c')
-rw-r--r-- | drivers/media/tuners/r820t.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 5cd8256a203e..1821cf192642 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -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) |