]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9774): tda827x: fix returned frequency
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Dec 2008 03:49:33 +0000 (00:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:38:18 +0000 (09:38 -0200)
commit1ea93997ac32a5f3f4b64a5cea1d33fc2874cb66
tree9d68e63f845049a5b0f903a35f399c7f48f257cd
parent761c585d4730863cb49d0d53c854a90cd7147a8e
V4L/DVB (9774): tda827x: fix returned frequency

Probably due to a removed code, tda827x were doing some wrong calculus at the
returned frequency. I suspect that the original idea were to return the
programmed divisor converted into frequency again.

However, the current code is sometimes multiplying the programmed frequency by
62500, and, on other cases, like radio, it dividing it by 1000.

Instead of doing such math, let's just store the frequency value as requested by
the caller module.

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda827x.c