V4L/DVB (4470): MT2060: turn on the VGA
The VGA was not turned on after calling sleep. This lead to bad performance in difficult areas. Signed-off-by: matthieu castet <castet.matthieu@free.fr> Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
0f69e7f3f5
commit
294d83d7fe
1 changed files with 7 additions and 6 deletions
|
@ -277,11 +277,6 @@ static void mt2060_calibrate(struct mt2060_priv *priv)
|
||||||
dprintk("FMCAL timed out");
|
dprintk("FMCAL timed out");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mt2060_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len)
|
|
||||||
{
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int mt2060_get_frequency(struct dvb_frontend *fe, u32 *frequency)
|
static int mt2060_get_frequency(struct dvb_frontend *fe, u32 *frequency)
|
||||||
{
|
{
|
||||||
struct mt2060_priv *priv = fe->tuner_priv;
|
struct mt2060_priv *priv = fe->tuner_priv;
|
||||||
|
@ -296,6 +291,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int mt2060_init(struct dvb_frontend *fe)
|
||||||
|
{
|
||||||
|
struct mt2060_priv *priv = fe->tuner_priv;
|
||||||
|
return mt2060_writereg(priv, REG_VGAG,0x33);
|
||||||
|
}
|
||||||
|
|
||||||
static int mt2060_sleep(struct dvb_frontend *fe)
|
static int mt2060_sleep(struct dvb_frontend *fe)
|
||||||
{
|
{
|
||||||
struct mt2060_priv *priv = fe->tuner_priv;
|
struct mt2060_priv *priv = fe->tuner_priv;
|
||||||
|
@ -319,10 +320,10 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = {
|
||||||
|
|
||||||
.release = mt2060_release,
|
.release = mt2060_release,
|
||||||
|
|
||||||
|
.init = mt2060_init,
|
||||||
.sleep = mt2060_sleep,
|
.sleep = mt2060_sleep,
|
||||||
|
|
||||||
.set_params = mt2060_set_params,
|
.set_params = mt2060_set_params,
|
||||||
.calc_regs = mt2060_calc_regs,
|
|
||||||
.get_frequency = mt2060_get_frequency,
|
.get_frequency = mt2060_get_frequency,
|
||||||
.get_bandwidth = mt2060_get_bandwidth
|
.get_bandwidth = mt2060_get_bandwidth
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue