Skip to content

Commit

Permalink
[media] drxd: allow functional gate control after, attach
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrice Chotard authored and Mauro Carvalho Chehab committed Dec 27, 2012
1 parent f698957 commit e7c953d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/dvb-frontends/drxd_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -2980,6 +2980,10 @@ struct dvb_frontend *drxd_attach(const struct drxd_config *config,
sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
ConfigureMPEGOutput(state, 0);
/* add few initialization to allow gate control */
CDRXD(state, state->config.IF ? state->config.IF : 36000000);
InitHI(state);

return &state->frontend;

error:
Expand Down

0 comments on commit e7c953d

Please sign in to comment.