Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285454
b: refs/heads/master
c: 01ce5a7
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 929ce8e commit 8faeb3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 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: 2676c258eb836caed508099e58030398217a5ef0
refs/heads/master: 01ce5a7915932c199c8196347d0469ab2cc0573f
17 changes: 2 additions & 15 deletions trunk/drivers/media/common/tuners/mt2131.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ static int mt2131_writeregs(struct mt2131_priv *priv,u8 *buf, u8 len)
static int mt2131_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct mt2131_priv *priv;
int ret=0, i;
u32 freq;
Expand All @@ -105,12 +106,8 @@ static int mt2131_set_params(struct dvb_frontend *fe,
u8 lockval = 0;

priv = fe->tuner_priv;
if (fe->ops.info.type == FE_OFDM)
priv->bandwidth = params->u.ofdm.bandwidth;
else
priv->bandwidth = 0;

freq = params->frequency / 1000; // Hz -> kHz
freq = c->frequency / 1000; /* Hz -> kHz */
dprintk(1, "%s() freq=%d\n", __func__, freq);

f_lo1 = freq + MT2131_IF1 * 1000;
Expand Down Expand Up @@ -193,14 +190,6 @@ static int mt2131_get_frequency(struct dvb_frontend *fe, u32 *frequency)
return 0;
}

static int mt2131_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
{
struct mt2131_priv *priv = fe->tuner_priv;
dprintk(1, "%s()\n", __func__);
*bandwidth = priv->bandwidth;
return 0;
}

static int mt2131_get_status(struct dvb_frontend *fe, u32 *status)
{
struct mt2131_priv *priv = fe->tuner_priv;
Expand Down Expand Up @@ -263,7 +252,6 @@ static const struct dvb_tuner_ops mt2131_tuner_ops = {

.set_params = mt2131_set_params,
.get_frequency = mt2131_get_frequency,
.get_bandwidth = mt2131_get_bandwidth,
.get_status = mt2131_get_status
};

Expand All @@ -281,7 +269,6 @@ struct dvb_frontend * mt2131_attach(struct dvb_frontend *fe,
return NULL;

priv->cfg = cfg;
priv->bandwidth = 6000000; /* 6MHz */
priv->i2c = i2c;

if (mt2131_readreg(priv, 0, &id) != 0) {
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/common/tuners/mt2131_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ struct mt2131_priv {
struct i2c_adapter *i2c;

u32 frequency;
u32 bandwidth;
};

#endif /* __MT2131_PRIV_H__ */
Expand Down

0 comments on commit 8faeb3b

Please sign in to comment.