Skip to content

Commit

Permalink
[media] si2157: Add get_if_frequency callback
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Schwarzott authored and Mauro Carvalho Chehab committed Jul 22, 2014
1 parent 05024ef commit 1140540
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/media/tuners/si2157.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ static int si2157_set_params(struct dvb_frontend *fe)
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",
Expand All @@ -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,
Expand Down

0 comments on commit 1140540

Please sign in to comment.