From: Patrice Chotard <patrice.chotard@sfr.fr>
To: Linux Media Mailing List <linux-media@vger.kernel.org>,
Devin Heitmueller <dheitmueller@kernellabs.com>,
Antti Palosaari <crope@iki.fi>,
Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Frédéric <frederic.mantegazza@gbiloba.org>
Subject: [PATCH 1/2] [media] drxd: allow functional gate control after, attach
Date: Sun, 16 Dec 2012 00:11:28 +0100 [thread overview]
Message-ID: <50CD03A0.602@sfr.fr> (raw)
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>
---
drivers/media/dvb-frontends/drxd_hard.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/media/dvb-frontends/drxd_hard.c
b/drivers/media/dvb-frontends/drxd_hard.c
index 6d98537..b2ab1e8 100644
--- a/drivers/media/dvb-frontends/drxd_hard.c
+++ b/drivers/media/dvb-frontends/drxd_hard.c
@@ -2978,6 +2978,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:
--
1.7.10.4
next reply other threads:[~2012-12-15 23:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-15 23:11 Patrice Chotard [this message]
2012-12-16 12:00 ` [PATCH 1/2] [media] drxd: allow functional gate control after, attach Antti Palosaari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50CD03A0.602@sfr.fr \
--to=patrice.chotard@sfr.fr \
--cc=crope@iki.fi \
--cc=dheitmueller@kernellabs.com \
--cc=frederic.mantegazza@gbiloba.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.