diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-02-15 00:29:23 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-02-15 00:29:23 +0000 |
commit | 189510537a87919b30295d4d862f440ba2fd400d (patch) | |
tree | b767405ad496eb8b479932194a75c42502202d0b | |
parent | d4a4930ff0ffe54e2579f9d18ab31e926a2e9eec (diff) | |
download | mediapointer-dvb-s2-189510537a87919b30295d4d862f440ba2fd400d.tar.gz mediapointer-dvb-s2-189510537a87919b30295d4d862f440ba2fd400d.tar.bz2 |
verbose-print AFC only if carrier has been recovered
-rw-r--r-- | linux/drivers/media/dvb/frontends/ves1820.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c index 6d335b8d8..33e709626 100644 --- a/linux/drivers/media/dvb/frontends/ves1820.c +++ b/linux/drivers/media/dvb/frontends/ves1820.c @@ -440,13 +440,14 @@ static int ves1820_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) s8 afc = 0; sync = ves1820_readreg (fe, 0x11); - if (sync & 2) + if (sync & 2) { /* AFC only valid when carrier has been recovered */ afc = ves1820_readreg(fe, 0x19); - if (verbose) - printk ("DVB: VES1820(%d): AFC (%d) %dHz\n", + if (verbose) + printk ("DVB: VES1820(%d): AFC (%d) %dHz\n", fe->i2c->adapter->num, afc, -((s32)(p->u.qam.symbol_rate >> 3) * afc >> 7)); + } p->inversion = HAS_INVERSION(reg0) ? INVERSION_ON : INVERSION_OFF; p->u.qam.modulation = ((reg0 >> 2) & 7) + QAM_16; |