diff options
author | Patrice Chotard <patrice.chotard@sfr.fr> | 2012-12-15 17:11:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-27 15:19:26 -0500 |
commit | e7c953d280cea9a79018ae36e2bc7cedc3678de3 (patch) | |
tree | 21bec213562df7ac2852d84f8d341a0a7d4a3bb7 /drivers/media/dvb-frontends | |
parent | f698957aeaf3a711c2aa630a845b43426c02f339 (diff) |
[media] drxd: allow functional gate control after, attach
Previously, gate control didn't work until drxd_init()
execution. Migrate necessary set of commands in drxd_attach
to allow gate control to be used by tuner which are
accessible through i2c gate.
Reported-by: frederic.mantegazza@gbiloba.org
Signed-off-by: Patrice Chotard <patricechotard@free.fr>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/drxd_hard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c index e71cc60851e7..487c53b69bf3 100644 --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c | |||
@@ -2980,6 +2980,10 @@ struct dvb_frontend *drxd_attach(const struct drxd_config *config, | |||
2980 | sizeof(struct dvb_frontend_ops)); | 2980 | sizeof(struct dvb_frontend_ops)); |
2981 | state->frontend.demodulator_priv = state; | 2981 | state->frontend.demodulator_priv = state; |
2982 | ConfigureMPEGOutput(state, 0); | 2982 | ConfigureMPEGOutput(state, 0); |
2983 | /* add few initialization to allow gate control */ | ||
2984 | CDRXD(state, state->config.IF ? state->config.IF : 36000000); | ||
2985 | InitHI(state); | ||
2986 | |||
2983 | return &state->frontend; | 2987 | return &state->frontend; |
2984 | 2988 | ||
2985 | error: | 2989 | error: |