Commit 055327c5 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] mt2060: implement .get_if_frequency()

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6d42b218
...@@ -300,6 +300,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) ...@@ -300,6 +300,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
return 0; return 0;
} }
static int mt2060_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
{
*frequency = IF2 * 1000;
return 0;
}
static int mt2060_init(struct dvb_frontend *fe) static int mt2060_init(struct dvb_frontend *fe)
{ {
struct mt2060_priv *priv = fe->tuner_priv; struct mt2060_priv *priv = fe->tuner_priv;
...@@ -356,7 +362,8 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = { ...@@ -356,7 +362,8 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = {
.set_params = mt2060_set_params, .set_params = mt2060_set_params,
.get_frequency = mt2060_get_frequency, .get_frequency = mt2060_get_frequency,
.get_bandwidth = mt2060_get_bandwidth .get_bandwidth = mt2060_get_bandwidth,
.get_if_frequency = mt2060_get_if_frequency,
}; };
/* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */ /* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment