summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/mt2063.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2011-07-23 19:28:14 +0200
committerMauro Carvalho Chehab2012-01-05 01:49:05 +0100
commit5160e81b9992d6a34d30c5dd80bc62045e481d1f (patch)
tree008938d3dec9301fa03c92a80599bbf63f0b5315 /drivers/media/common/tuners/mt2063.c
parent[media] mt2063: add some useful info for the dvb callback calls (diff)
downloadkernel-qcow2-linux-5160e81b9992d6a34d30c5dd80bc62045e481d1f.tar.gz
kernel-qcow2-linux-5160e81b9992d6a34d30c5dd80bc62045e481d1f.tar.xz
kernel-qcow2-linux-5160e81b9992d6a34d30c5dd80bc62045e481d1f.zip
[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>
Diffstat (limited to 'drivers/media/common/tuners/mt2063.c')
-rw-r--r--drivers/media/common/tuners/mt2063.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/common/tuners/mt2063.c b/drivers/media/common/tuners/mt2063.c
index 6f14ee3bb263..98020a90508d 100644
--- a/drivers/media/common/tuners/mt2063.c
+++ b/drivers/media/common/tuners/mt2063.c
@@ -2190,7 +2190,7 @@ static int mt2063_set_params(struct dvb_frontend *fe)
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;
@@ -2199,9 +2199,9 @@ static int mt2063_get_frequency(struct dvb_frontend *fe, u32 *freq)
if (!state->init)
return -ENODEV;
- *freq = state->frequency;
+ *freq = state->reference * 1000;
- dprintk(1, "frequency: %d\n", *freq);
+ dprintk(1, "IF frequency: %d\n", *freq);
return 0;
}
@@ -2235,7 +2235,7 @@ static struct dvb_tuner_ops mt2063_ops = {
.get_status = mt2063_get_status,
.set_analog_params = mt2063_set_analog_params,
.set_params = mt2063_set_params,
- .get_frequency = mt2063_get_frequency,
+ .get_if_frequency = mt2063_get_if_frequency,
.get_bandwidth = mt2063_get_bandwidth,
.release = mt2063_release,
};