summaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-11-13 05:07:42 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 20:53:17 +0100
commited9405140e1ad1602352d525afede193ebfd67d7 (patch)
tree01d71c823ba0b2435530e7e20ef8a63952f2fa7e /drivers/media/common
parent[media] mt2060: implement .get_if_frequency() (diff)
downloadlinux-ed9405140e1ad1602352d525afede193ebfd67d7.tar.xz
linux-ed9405140e1ad1602352d525afede193ebfd67d7.zip
[media] qt1010: 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/common')
-rw-r--r--drivers/media/common/tuners/qt1010.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/qt1010.c b/drivers/media/common/tuners/qt1010.c
index 9f5dba244cb8..cd461c2a4c38 100644
--- a/drivers/media/common/tuners/qt1010.c
+++ b/drivers/media/common/tuners/qt1010.c
@@ -423,6 +423,12 @@ static int qt1010_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
return 0;
}
+static int qt1010_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
+{
+ *frequency = 36125000;
+ return 0;
+}
+
static const struct dvb_tuner_ops qt1010_tuner_ops = {
.info = {
.name = "Quantek QT1010",
@@ -437,7 +443,8 @@ static const struct dvb_tuner_ops qt1010_tuner_ops = {
.set_params = qt1010_set_params,
.get_frequency = qt1010_get_frequency,
- .get_bandwidth = qt1010_get_bandwidth
+ .get_bandwidth = qt1010_get_bandwidth,
+ .get_if_frequency = qt1010_get_if_frequency,
};
struct dvb_frontend * qt1010_attach(struct dvb_frontend *fe,