summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-09-02 19:21:51 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-18 12:54:44 -0300
commit89fd5ef8fa7d397ef90f5e304dfef48fe54ba257 (patch)
treeae8c7e39347343d328c9cf18a91a25545e9ca050 /drivers/media/tuners
parentab2e06acb4ae0293add73608a49512530758edf6 (diff)
downloadblackbird-op-linux-89fd5ef8fa7d397ef90f5e304dfef48fe54ba257.tar.gz
blackbird-op-linux-89fd5ef8fa7d397ef90f5e304dfef48fe54ba257.zip
[media] mc44s803: 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')
-rw-r--r--drivers/media/tuners/mc44s803.c9
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)
return 0;
}
+static int mc44s803_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
+{
+ *frequency = MC44S803_IF2; /* 36.125 MHz */
+ return 0;
+}
+
static const struct dvb_tuner_ops mc44s803_tuner_ops = {
.info = {
.name = "Freescale MC44S803",
@@ -309,7 +315,8 @@ static const struct dvb_tuner_ops mc44s803_tuner_ops = {
.release = mc44s803_release,
.init = mc44s803_init,
.set_params = mc44s803_set_params,
- .get_frequency = mc44s803_get_frequency
+ .get_frequency = mc44s803_get_frequency,
+ .get_if_frequency = mc44s803_get_if_frequency,
};
/* This functions tries to identify a MC44S803 tuner by reading the ID
OpenPOWER on IntegriCloud