2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-22 12:33:59 +08:00

[media] mt2063: Add support for get_if_frequency()

get_if_frequency() is needed, in order to work with DRX-K.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2011-07-23 14:28:14 -03:00
parent b52e7c7687
commit 5160e81b99

View File

@ -2190,7 +2190,7 @@ static int mt2063_set_params(struct dvb_frontend *fe)
return 0; return 0;
} }
static int mt2063_get_frequency(struct dvb_frontend *fe, u32 *freq) static int mt2063_get_if_frequency(struct dvb_frontend *fe, u32 *freq)
{ {
struct mt2063_state *state = fe->tuner_priv; struct mt2063_state *state = fe->tuner_priv;
@ -2199,9 +2199,9 @@ static int mt2063_get_frequency(struct dvb_frontend *fe, u32 *freq)
if (!state->init) if (!state->init)
return -ENODEV; return -ENODEV;
*freq = state->frequency; *freq = state->reference * 1000;
dprintk(1, "frequency: %d\n", *freq); dprintk(1, "IF frequency: %d\n", *freq);
return 0; return 0;
} }
@ -2235,7 +2235,7 @@ static struct dvb_tuner_ops mt2063_ops = {
.get_status = mt2063_get_status, .get_status = mt2063_get_status,
.set_analog_params = mt2063_set_analog_params, .set_analog_params = mt2063_set_analog_params,
.set_params = mt2063_set_params, .set_params = mt2063_set_params,
.get_frequency = mt2063_get_frequency, .get_if_frequency = mt2063_get_if_frequency,
.get_bandwidth = mt2063_get_bandwidth, .get_bandwidth = mt2063_get_bandwidth,
.release = mt2063_release, .release = mt2063_release,
}; };