diff options
author | Antti Palosaari <crope@iki.fi> | 2011-11-12 22:44:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-24 14:53:00 -0500 |
commit | 055327c55a7b74b25bf3e178da353982e6eef487 (patch) | |
tree | e93812772eb8c5d3e88dca6ec9e455904b17baaa /drivers/media/common/tuners/mt2060.c | |
parent | 6d42b218b43f300d0787df7984c8f789de24c6e7 (diff) |
[media] mt2060: 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/common/tuners/mt2060.c')
-rw-r--r-- | drivers/media/common/tuners/mt2060.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mt2060.c b/drivers/media/common/tuners/mt2060.c index 2d0e7689c6a2..2ecaa53d1449 100644 --- a/drivers/media/common/tuners/mt2060.c +++ b/drivers/media/common/tuners/mt2060.c | |||
@@ -300,6 +300,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) | |||
300 | return 0; | 300 | return 0; |
301 | } | 301 | } |
302 | 302 | ||
303 | static int mt2060_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) | ||
304 | { | ||
305 | *frequency = IF2 * 1000; | ||
306 | return 0; | ||
307 | } | ||
308 | |||
303 | static int mt2060_init(struct dvb_frontend *fe) | 309 | static int mt2060_init(struct dvb_frontend *fe) |
304 | { | 310 | { |
305 | struct mt2060_priv *priv = fe->tuner_priv; | 311 | struct mt2060_priv *priv = fe->tuner_priv; |
@@ -356,7 +362,8 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = { | |||
356 | 362 | ||
357 | .set_params = mt2060_set_params, | 363 | .set_params = mt2060_set_params, |
358 | .get_frequency = mt2060_get_frequency, | 364 | .get_frequency = mt2060_get_frequency, |
359 | .get_bandwidth = mt2060_get_bandwidth | 365 | .get_bandwidth = mt2060_get_bandwidth, |
366 | .get_if_frequency = mt2060_get_if_frequency, | ||
360 | }; | 367 | }; |
361 | 368 | ||
362 | /* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */ | 369 | /* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */ |