diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-03 11:36:17 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-08-03 11:36:17 +0200 |
commit | 39fd6c4e2f9d26ccf2ecdd0a09863779eb68e1fe (patch) | |
tree | 07eb3bbb991388ce9f4d9e30d6bec84f7440fdea /linux/drivers/media/dvb/frontends/mt2060.c | |
parent | 32a2a5ff57851ba042dcd2352c7ec0aa96d242bf (diff) | |
download | mediapointer-dvb-s2-39fd6c4e2f9d26ccf2ecdd0a09863779eb68e1fe.tar.gz mediapointer-dvb-s2-39fd6c4e2f9d26ccf2ecdd0a09863779eb68e1fe.tar.bz2 |
MT2060: turn on the VGA
From: matthieu castet <castet.matthieu@free.fr>
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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt2060.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt2060.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt2060.c b/linux/drivers/media/dvb/frontends/mt2060.c index 39b32de2c..a722065e6 100644 --- a/linux/drivers/media/dvb/frontends/mt2060.c +++ b/linux/drivers/media/dvb/frontends/mt2060.c @@ -283,11 +283,6 @@ static void mt2060_calibrate(struct mt2060_priv *priv) 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) { struct mt2060_priv *priv = fe->tuner_priv; @@ -302,6 +297,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) 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) { struct mt2060_priv *priv = fe->tuner_priv; @@ -325,10 +326,10 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = { .release = mt2060_release, + .init = mt2060_init, .sleep = mt2060_sleep, .set_params = mt2060_set_params, - .calc_regs = mt2060_calc_regs, .get_frequency = mt2060_get_frequency, .get_bandwidth = mt2060_get_bandwidth }; |