aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/zl10353.h
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-20 06:17:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:37 -0500
commita1dcd9de648c8cf21abaeca7f77885665eed4117 (patch)
treef35cdf7d007056445a0603a12fb20d3eed5ec7ba /drivers/media/dvb/frontends/zl10353.h
parent702a67624e4bc9c7056418b576af928940b7dbb9 (diff)
V4L/DVB (6656): zl10353: store frequencies in 0.1kHz to eliminate rounding errors
Whilst reanalysing my formulas I realised it was no longer possible to get the right values for a 36.1667MHz IF due to rounding problems. Storing frequencies in units of 0.1kHz makes it possible to calculate these again correctly. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.h')
-rw-r--r--drivers/media/dvb/frontends/zl10353.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.h b/drivers/media/dvb/frontends/zl10353.h
index 2660cec93f83..fc734c22b5fa 100644
--- a/drivers/media/dvb/frontends/zl10353.h
+++ b/drivers/media/dvb/frontends/zl10353.h
@@ -29,9 +29,9 @@ struct zl10353_config
29 /* demodulator's I2C address */ 29 /* demodulator's I2C address */
30 u8 demod_address; 30 u8 demod_address;
31 31
32 /* frequencies in kHz */ 32 /* frequencies in units of 0.1kHz */
33 int adc_clock; /* default: 45056 */ 33 int adc_clock; /* default: 450560 (45.056 MHz) */
34 int if2; /* default: 36167 */ 34 int if2; /* default: 361667 (36.1667 MHz) */
35 35
36 /* set if no pll is connected to the secondary i2c bus */ 36 /* set if no pll is connected to the secondary i2c bus */
37 int no_tuner; 37 int no_tuner;
@@ -50,6 +50,6 @@ static inline struct dvb_frontend* zl10353_attach(const struct zl10353_config *c
50 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 50 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
51 return NULL; 51 return NULL;
52} 52}
53#endif // CONFIG_DVB_ZL10353 53#endif /* CONFIG_DVB_ZL10353 */
54 54
55#endif /* ZL10353_H */ 55#endif /* ZL10353_H */