From 407f1f4844f5d661816e66bd0227959ec2132640 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Tue, 20 May 2003 12:49:03 +0000 Subject: changed AFC debug printk to output frequency offset in Hz --- linux/drivers/media/dvb/frontends/ves1820.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c index 0deae0727..0d637f438 100644 --- a/linux/drivers/media/dvb/frontends/ves1820.c +++ b/linux/drivers/media/dvb/frontends/ves1820.c @@ -419,7 +419,9 @@ int ves1820_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) if (sync & 2) /* AFC only valid when carrier has been recovered */ afc = ves1820_readreg(fe, 0x19); - printk ("VES1820: AFC %d\n", afc); + printk ("%s: AFC (%d) %dHz\n", __FILE__, afc, + -((s32)(p->u.qam.symbol_rate >> 3) * afc >> 7)); + p->inversion = reg0 & 0x20 ? INVERSION_OFF : INVERSION_ON; p->u.qam.modulation = ((reg0 >> 2) & 7) + QAM_16; -- cgit v1.2.3