diff options
author | Antti Palosaari <crope@iki.fi> | 2012-09-02 18:21:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-18 11:54:44 -0400 |
commit | 89fd5ef8fa7d397ef90f5e304dfef48fe54ba257 (patch) | |
tree | ae8c7e39347343d328c9cf18a91a25545e9ca050 | |
parent | ab2e06acb4ae0293add73608a49512530758edf6 (diff) |
[media] mc44s803: implement get_if_frequency()
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/tuners/mc44s803.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/tuners/mc44s803.c b/drivers/media/tuners/mc44s803.c index 5ddce7e326f7..f1b764074661 100644 --- a/drivers/media/tuners/mc44s803.c +++ b/drivers/media/tuners/mc44s803.c | |||
@@ -298,6 +298,12 @@ static int mc44s803_get_frequency(struct dvb_frontend *fe, u32 *frequency) | |||
298 | return 0; | 298 | return 0; |
299 | } | 299 | } |
300 | 300 | ||
301 | static int mc44s803_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) | ||
302 | { | ||
303 | *frequency = MC44S803_IF2; /* 36.125 MHz */ | ||
304 | return 0; | ||
305 | } | ||
306 | |||
301 | static const struct dvb_tuner_ops mc44s803_tuner_ops = { | 307 | static const struct dvb_tuner_ops mc44s803_tuner_ops = { |
302 | .info = { | 308 | .info = { |
303 | .name = "Freescale MC44S803", | 309 | .name = "Freescale MC44S803", |
@@ -309,7 +315,8 @@ static const struct dvb_tuner_ops mc44s803_tuner_ops = { | |||
309 | .release = mc44s803_release, | 315 | .release = mc44s803_release, |
310 | .init = mc44s803_init, | 316 | .init = mc44s803_init, |
311 | .set_params = mc44s803_set_params, | 317 | .set_params = mc44s803_set_params, |
312 | .get_frequency = mc44s803_get_frequency | 318 | .get_frequency = mc44s803_get_frequency, |
319 | .get_if_frequency = mc44s803_get_if_frequency, | ||
313 | }; | 320 | }; |
314 | 321 | ||
315 | /* This functions tries to identify a MC44S803 tuner by reading the ID | 322 | /* This functions tries to identify a MC44S803 tuner by reading the ID |