aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-24 14:00:48 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-24 22:29:15 (GMT)
commit4c21a6fed32ba340dc9579f73852270ccdc8663d (patch)
treecb58fa942949f534bf840d6d782dac5cb7bf2497
parentf43aa3c3f86decfa843a64c8bd695dfcbf355861 (diff)
[media] qm1d1c0042: fix frequency calculus
Changeset aee9cf18e96e broke the frequency calculus. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/tuners/qm1d1c0042.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/qm1d1c0042.c b/drivers/media/tuners/qm1d1c0042.c
index 2a990f4..18bc745 100644
--- a/drivers/media/tuners/qm1d1c0042.c
+++ b/drivers/media/tuners/qm1d1c0042.c
@@ -235,8 +235,8 @@ static int qm1d1c0042_set_params(struct dvb_frontend *fe)
* sd = b (b >= 0)
* 1<<22 + b (b < 0)
*/
- b = (s32)div64_s64(((s64) freq) << 20,
- state->cfg.xtal_freq - (((s64) a) << 20));
+ b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq)
+ - (((s64) a) << 20);
if (b >= 0)
sd = b;

Privacy Policy