summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/ves1820.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2003-05-20 12:49:03 +0000
committerJohannes Stezenbach <devnull@localhost>2003-05-20 12:49:03 +0000
commit407f1f4844f5d661816e66bd0227959ec2132640 (patch)
treeeb30896a07c2dcc5716e97840fca6819cbfb2205 /linux/drivers/media/dvb/frontends/ves1820.c
parentf7d00d3ba057517ced1a2970685d7c09fbfb8c41 (diff)
downloadmediapointer-dvb-s2-407f1f4844f5d661816e66bd0227959ec2132640.tar.gz
mediapointer-dvb-s2-407f1f4844f5d661816e66bd0227959ec2132640.tar.bz2
changed AFC debug printk to output frequency offset in Hz
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r--linux/drivers/media/dvb/frontends/ves1820.c4
1 files changed, 3 insertions, 1 deletions
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;