summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/mxl5005s.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-09-02 18:44:31 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-18 12:51:00 -0300
commitc4931055c2261a4c22520342ef209b74df7d2e91 (patch)
tree2515bcdd9e11b4484c958d7704ef2ec1c4d7b40d /drivers/media/tuners/mxl5005s.c
parenteb2e2652457e407ff617a4412120e924398e7545 (diff)
[media] mxl5005s: implement get_if_frequency()
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/mxl5005s.c')
-rw-r--r--drivers/media/tuners/mxl5005s.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/tuners/mxl5005s.c b/drivers/media/tuners/mxl5005s.c
index 6133315fb0e..b473b76cb27 100644
--- a/drivers/media/tuners/mxl5005s.c
+++ b/drivers/media/tuners/mxl5005s.c
@@ -4054,6 +4054,16 @@ static int mxl5005s_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
return 0;
}
+static int mxl5005s_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
+{
+ struct mxl5005s_state *state = fe->tuner_priv;
+ dprintk(1, "%s()\n", __func__);
+
+ *frequency = state->IF_OUT;
+
+ return 0;
+}
+
static int mxl5005s_release(struct dvb_frontend *fe)
{
dprintk(1, "%s()\n", __func__);
@@ -4076,6 +4086,7 @@ static const struct dvb_tuner_ops mxl5005s_tuner_ops = {
.set_params = mxl5005s_set_params,
.get_frequency = mxl5005s_get_frequency,
.get_bandwidth = mxl5005s_get_bandwidth,
+ .get_if_frequency = mxl5005s_get_if_frequency,
};
struct dvb_frontend *mxl5005s_attach(struct dvb_frontend *fe,