• Mauro Carvalho Chehab's avatar
    V4L/DVB (9774): tda827x: fix returned frequency · 92d90f1a
    Mauro Carvalho Chehab authored
    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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    92d90f1a
tda827x.c 24.3 KB