]> git.baikalelectronics.ru Git - kernel.git/commit
[media] xc4000: Fix get_frequency()
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 21 Jul 2014 16:28:15 +0000 (13:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 23 Jul 2014 00:44:42 +0000 (21:44 -0300)
commit0c959c246a369f908c875a47842d7b5a3a0816a3
treecf0ccd8f5305580098bb50eddbd770a20ebf8f6b
parent59c06f3027f4f00044a9bf5d5d199be49e797665
[media] xc4000: Fix get_frequency()

The programmed frequency on xc4000 is not the middle
frequency, but the initial frequency on the bandwidth range.
However, the DVB API works with the middle frequency.

This works fine on set_frontend, as the device calculates
the needed offset. However, at get_frequency(), the returned
value is the initial frequency. That's generally not a big
problem on most drivers, however, starting with changeset
e106e233c770, the frequency drift is taken into account at
dib7000p driver.

This broke support for PCTV 340e, with uses dib7000p demod and
xc4000 tuner.

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/xc4000.c