diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2014-07-15 03:58:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-21 20:29:38 -0400 |
commit | 1140540da0e4b00978607244b58f06a528b819c7 (patch) | |
tree | c9957257ea5704c06190d48dd2f1c17058039e3c /drivers/media/tuners/si2157.c | |
parent | 05024efe1264c3379135d7223f2c84c8f7ef2172 (diff) |
[media] si2157: Add get_if_frequency callback
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>
Diffstat (limited to 'drivers/media/tuners/si2157.c')
-rw-r--r-- | drivers/media/tuners/si2157.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index f6199832b4cc..6c53edb73a63 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c | |||
@@ -279,6 +279,12 @@ err: | |||
279 | return ret; | 279 | return ret; |
280 | } | 280 | } |
281 | 281 | ||
282 | static int si2157_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) | ||
283 | { | ||
284 | *frequency = 5000000; /* default value of property 0x0706 */ | ||
285 | return 0; | ||
286 | } | ||
287 | |||
282 | static const struct dvb_tuner_ops si2157_ops = { | 288 | static const struct dvb_tuner_ops si2157_ops = { |
283 | .info = { | 289 | .info = { |
284 | .name = "Silicon Labs Si2157/Si2158", | 290 | .name = "Silicon Labs Si2157/Si2158", |
@@ -289,6 +295,7 @@ static const struct dvb_tuner_ops si2157_ops = { | |||
289 | .init = si2157_init, | 295 | .init = si2157_init, |
290 | .sleep = si2157_sleep, | 296 | .sleep = si2157_sleep, |
291 | .set_params = si2157_set_params, | 297 | .set_params = si2157_set_params, |
298 | .get_if_frequency = si2157_get_if_frequency, | ||
292 | }; | 299 | }; |
293 | 300 | ||
294 | static int si2157_probe(struct i2c_client *client, | 301 | static int si2157_probe(struct i2c_client *client, |