diff options
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c index 1d5cecd6b..863835692 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c @@ -207,7 +207,7 @@ int panasonic_cofdm_env57h1xd5_pll_set(struct dvb_frontend *fe, struct struct usb_dibusb* dib = (struct usb_dibusb*) fe->dvb->priv; u8 buf[4]; u32 freq = params->frequency; - u32 tfreq = (freq + 36125000) / 1000000 * 6 + 1; + u32 tfreq = ((freq + 36125000)*6 + 500000) / 1000000; u8 TA, T210, R210, ctrl1, cp210, p4321; struct i2c_msg msg = { .addr = dib->dibdev->parm->pll_addr, |