Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285238
b: refs/heads/master
c: 055327c
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent 419ba28 commit c2340cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d42b218b43f300d0787df7984c8f789de24c6e7
refs/heads/master: 055327c55a7b74b25bf3e178da353982e6eef487
9 changes: 8 additions & 1 deletion trunk/drivers/media/common/tuners/mt2060.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit c2340cd

Please sign in to comment.