[media] mc44s803: implement get_if_frequency()
authorAntti Palosaari <crope@iki.fi>
Sun, 2 Sep 2012 22:21:51 +0000 (19:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 Sep 2012 15:54:44 +0000 (12:54 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/mc44s803.c

index 5ddce7e326f743043d8cdaa87c5c1f3ca8c079d4..f1b76407466102950f75893f8cd3533a714595e4 100644 (file)
@@ -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
This page took 0.027484 seconds and 5 git commands to generate.