From 96e14a051a671b9b068e873aa6467a8a73bc06d5 Mon Sep 17 00:00:00 2001 From: Antti Palosaari Date: Sun, 13 Nov 2011 11:22:58 -0300 Subject: [PATCH] --- yaml --- r: 285241 b: refs/heads/master c: 8cffcc78996c25a04423e294faa1bb5bba3e420e h: refs/heads/master i: 285239: b68a847cb5b82d273e76ff2f5ca783778c6ed31a v: v3 --- [refs] | 2 +- trunk/drivers/media/common/tuners/tda18212.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 93bc4ef7c173..a454dd2e0444 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 835bf82ce4b64e280ca6c4da67c819a1065693bc +refs/heads/master: 8cffcc78996c25a04423e294faa1bb5bba3e420e diff --git a/trunk/drivers/media/common/tuners/tda18212.c b/trunk/drivers/media/common/tuners/tda18212.c index b1750d21b486..f52282e6c8bb 100644 --- a/trunk/drivers/media/common/tuners/tda18212.c +++ b/trunk/drivers/media/common/tuners/tda18212.c @@ -227,7 +227,7 @@ static int tda18212_set_params(struct dvb_frontend *fe, buf[0] = 0x02; buf[1] = bw_params[i][1]; buf[2] = 0x03; /* default value */ - buf[3] = if_khz / 50; + buf[3] = DIV_ROUND_CLOSEST(if_khz, 50); buf[4] = ((c->frequency / 1000) >> 16) & 0xff; buf[5] = ((c->frequency / 1000) >> 8) & 0xff; buf[6] = ((c->frequency / 1000) >> 0) & 0xff;