aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-23 13:28:14 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-04 19:49:05 -0500
commit5160e81b9992d6a34d30c5dd80bc62045e481d1f (patch)
tree008938d3dec9301fa03c92a80599bbf63f0b5315 /drivers/media/common
parentb52e7c768724bde20669f37f37290922de348151 (diff)
[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')
-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)
2190 return 0; 2190 return 0;
2191} 2191}
2192 2192
2193static int mt2063_get_frequency(struct dvb_frontend *fe, u32 *freq) 2193static int mt2063_get_if_frequency(struct dvb_frontend *fe, u32 *freq)
2194{ 2194{
2195 struct mt2063_state *state = fe->tuner_priv; 2195 struct mt2063_state *state = fe->tuner_priv;
2196 2196
@@ -2199,9 +2199,9 @@ static int mt2063_get_frequency(struct dvb_frontend *fe, u32 *freq)
2199 if (!state->init) 2199 if (!state->init)
2200 return -ENODEV; 2200 return -ENODEV;
2201 2201
2202 *freq = state->frequency; 2202 *freq = state->reference * 1000;
2203 2203
2204 dprintk(1, "frequency: %d\n", *freq); 2204 dprintk(1, "IF frequency: %d\n", *freq);
2205 2205
2206 return 0; 2206 return 0;
2207} 2207}
@@ -2235,7 +2235,7 @@ static struct dvb_tuner_ops mt2063_ops = {
2235 .get_status = mt2063_get_status, 2235 .get_status = mt2063_get_status,
2236 .set_analog_params = mt2063_set_analog_params, 2236 .set_analog_params = mt2063_set_analog_params,
2237 .set_params = mt2063_set_params, 2237 .set_params = mt2063_set_params,
2238 .get_frequency = mt2063_get_frequency, 2238 .get_if_frequency = mt2063_get_if_frequency,
2239 .get_bandwidth = mt2063_get_bandwidth, 2239 .get_bandwidth = mt2063_get_bandwidth,
2240 .release = mt2063_release, 2240 .release = mt2063_release,
2241}; 2241};