media: dvb: convert tuner_info frequencies to Hz
Right now, satellite tuner drivers specify frequencies in kHz, while terrestrial/cable ones specify in Hz. That's confusing for developers. However, the main problem is that universal tuners capable of handling both satellite and non-satelite delivery systems are appearing. We end by needing to hack the drivers in order to support such hybrid tuners. So, convert everything to specify tuner frequencies in Hz. Plese notice that a similar patch is also needed for frontends. Tested-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Acked-by: Michael Büsch <m@bues.ch> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
@@ -394,10 +394,10 @@ static int qt1010_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
|
||||
|
||||
static const struct dvb_tuner_ops qt1010_tuner_ops = {
|
||||
.info = {
|
||||
.name = "Quantek QT1010",
|
||||
.frequency_min = QT1010_MIN_FREQ,
|
||||
.frequency_max = QT1010_MAX_FREQ,
|
||||
.frequency_step = QT1010_STEP,
|
||||
.name = "Quantek QT1010",
|
||||
.frequency_min_hz = QT1010_MIN_FREQ,
|
||||
.frequency_max_hz = QT1010_MAX_FREQ,
|
||||
.frequency_step_hz = QT1010_STEP,
|
||||
},
|
||||
|
||||
.release = qt1010_release,
|
||||
|
Reference in New Issue
Block a user