Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7c953d2 authored by Patrice Chotard's avatar Patrice Chotard Committed by Mauro Carvalho Chehab
Browse files

[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: default avatar <frederic.mantegazza@gbiloba.org>
Signed-off-by: default avatarPatrice Chotard <patricechotard@free.fr>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f698957a
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -2980,6 +2980,10 @@ struct dvb_frontend *drxd_attach(const struct drxd_config *config,
	       sizeof(struct dvb_frontend_ops));
	       sizeof(struct dvb_frontend_ops));
	state->frontend.demodulator_priv = state;
	state->frontend.demodulator_priv = state;
	ConfigureMPEGOutput(state, 0);
	ConfigureMPEGOutput(state, 0);
	/* add few initialization to allow gate control */
	CDRXD(state, state->config.IF ? state->config.IF : 36000000);
	InitHI(state);

	return &state->frontend;
	return &state->frontend;


error:
error: