]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] mt2060: implement .get_if_frequency()
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Nov 2011 03:44:57 +0000 (00:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 19:53:00 +0000 (17:53 -0200)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/mt2060.c

index 2d0e7689c6a224eae8757c5c054972f1ab03d2a6..2ecaa53d1449576a69d17cc9ce4078170bd92020 100644 (file)
@@ -300,6 +300,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
        return 0;
 }
 
+static int mt2060_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
+{
+       *frequency = IF2 * 1000;
+       return 0;
+}
+
 static int mt2060_init(struct dvb_frontend *fe)
 {
        struct mt2060_priv *priv = fe->tuner_priv;
@@ -356,7 +362,8 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = {
 
        .set_params    = mt2060_set_params,
        .get_frequency = mt2060_get_frequency,
-       .get_bandwidth = mt2060_get_bandwidth
+       .get_bandwidth = mt2060_get_bandwidth,
+       .get_if_frequency = mt2060_get_if_frequency,
 };
 
 /* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */