From: Antti Palosaari <crope@iki.fi>
To: Patrice Chotard <patrice.chotard@sfr.fr>
Cc: "Linux Media Mailing List" <linux-media@vger.kernel.org>,
"Devin Heitmueller" <dheitmueller@kernellabs.com>,
Frédéric <frederic.mantegazza@gbiloba.org>,
"Mauro Carvalho Chehab" <mchehab@redhat.com>
Subject: Re: [PATCH 2/2] [media] ngene: separate demodulator and tuner attach
Date: Sun, 16 Dec 2012 14:02:54 +0200 [thread overview]
Message-ID: <50CDB86E.800@iki.fi> (raw)
In-Reply-To: <50CD03AF.3080602@sfr.fr>
On 12/16/2012 01:11 AM, Patrice Chotard wrote:
> Previously, demodulator and tuner attach was done in the
> demod_attach callback. Migrate the tuner part in the
> tuner_attach callback in ngene_info to do thing in right place.
>
> Signed-off-by: Patrice Chotard <patricechotard@free.fr>
> ---
> drivers/media/pci/ngene/ngene-cards.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/media/pci/ngene/ngene-cards.c
> b/drivers/media/pci/ngene/ngene-cards.c
> index 96a13ed..8db3fa1 100644
> --- a/drivers/media/pci/ngene/ngene-cards.c
> +++ b/drivers/media/pci/ngene/ngene-cards.c
> @@ -328,6 +328,15 @@ static int demod_attach_drxd(struct ngene_channel
> *chan)
> return -ENODEV;
> }
>
> + return 0;
> +}
> +
> +static int tuner_attach_dtt7520x(struct ngene_channel *chan)
> +{
> + struct drxd_config *feconf;
> +
> + feconf = chan->dev->card_info->fe_config[chan->number];
> +
> if (!dvb_attach(dvb_pll_attach, chan->fe, feconf->pll_address,
> &chan->i2c_adapter,
> feconf->pll_type)) {
> @@ -722,6 +731,7 @@ static struct ngene_info ngene_info_terratec = {
> .name = "Terratec Integra/Cinergy2400i Dual DVB-T",
> .io_type = {NGENE_IO_TSIN, NGENE_IO_TSIN},
> .demod_attach = {demod_attach_drxd, demod_attach_drxd},
> + .tuner_attach = {tuner_attach_dtt7520x, tuner_attach_dtt7520x},
> .fe_config = {&fe_terratec_dvbt_0, &fe_terratec_dvbt_1},
> .i2c_access = 1,
> };
>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Looks very correct, but I am not familiar with n-gene.
regards
Antti
--
http://palosaari.fi/
prev parent reply other threads:[~2012-12-16 12:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-15 23:11 [PATCH 2/2] [media] ngene: separate demodulator and tuner attach Patrice Chotard
2012-12-16 12:02 ` Antti Palosaari [this message]
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=50CDB86E.800@iki.fi \
--to=crope@iki.fi \
--cc=dheitmueller@kernellabs.com \
--cc=frederic.mantegazza@gbiloba.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=patrice.chotard@sfr.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).