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)
commit92d90f1a57dcb6c6ab5a7b9ad949bdb7531931a4
tree9d68e63f845049a5b0f903a35f399c7f48f257cd
parente5218eedaef39ed5f1ebc84ab9510dd9b99acadf
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