[media] si2157: Add get_if_frequency callback
authorMatthias Schwarzott <zzam@gentoo.org>
Tue, 15 Jul 2014 07:58:40 +0000 (04:58 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 00:29:38 +0000 (21:29 -0300)
This is needed for PCTV 522e support.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/si2157.c

index f6199832b4cc5c42bf1f23d6a7c7cbefb64747ec..6c53edb73a632ed0c43ade3acf363c9b580bff3d 100644 (file)
@@ -279,6 +279,12 @@ err:
        return ret;
 }
 
+static int si2157_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
+{
+       *frequency = 5000000; /* default value of property 0x0706 */
+       return 0;
+}
+
 static const struct dvb_tuner_ops si2157_ops = {
        .info = {
                .name           = "Silicon Labs Si2157/Si2158",
@@ -289,6 +295,7 @@ static const struct dvb_tuner_ops si2157_ops = {
        .init = si2157_init,
        .sleep = si2157_sleep,
        .set_params = si2157_set_params,
+       .get_if_frequency = si2157_get_if_frequency,
 };
 
 static int si2157_probe(struct i2c_client *client,