From: Andreas Oberritter <obi@linuxtv.org>
To: Manu Abraham <abraham.manu@gmail.com>
Cc: Antti Palosaari <crope@iki.fi>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: v4 [PATCH 09/10] CXD2820r: Query DVB frontend delivery capabilities
Date: Mon, 12 Dec 2011 13:43:00 +0100 [thread overview]
Message-ID: <4EE5F6D4.4050500@linuxtv.org> (raw)
In-Reply-To: <CAHFNz9+WEJHhJoUywwzCF=Jv7TRY9xG2rKuRxP=Ff0jvq40SSA@mail.gmail.com>
On 12.12.2011 05:28, Manu Abraham wrote:
> On Sat, Dec 10, 2011 at 5:17 PM, Antti Palosaari <crope@iki.fi> wrote:
>> On 12/10/2011 06:44 AM, Manu Abraham wrote:
>>>
>>> static int cxd2820r_set_frontend(struct dvb_frontend *fe,
>>
>> [...]
>>>
>>> + switch (c->delivery_system) {
>>> + case SYS_DVBT:
>>> + ret = cxd2820r_init_t(fe);
>>
>>
>>> + ret = cxd2820r_set_frontend_t(fe, p);
>>
>>
>>
>> Anyhow, I don't now like idea you have put .init() calls to .set_frontend().
>> Could you move .init() happen in .init() callback as it was earlier?
>
> This was there in the earlier patch as well. Maybe you have a
> new issue now ? ;-)
>
> ok.
>
> The argument what you make doesn't hold well, Why ?
>
> int cxd2820r_init_t(struct dvb_frontend *fe)
> {
> ret = cxd2820r_wr_reg(priv, 0x00085, 0x07);
> }
>
>
> int cxd2820r_init_c(struct dvb_frontend *fe)
> {
> ret = cxd2820r_wr_reg(priv, 0x00085, 0x07);
> }
>
>
> Now, you might like to point that, the Base I2C address location
> is different comparing DVB-T/DVBT2 to DVB-C
>
> So, If you have the init as in earlier with a common init, then you
> will likely init the wrong device at .init(), as init is called open().
> So, this might result in an additional register write, which could
> be avoided altogether. One register access is not definitely
> something to brag about, but is definitely a small incremental
> difference. Other than that this register write doesn't do anything
> more than an ADC_START. So starting the ADC at init doesn't
> make sense. But does so when you want to select the right ADC.
> So definitely, this change is an improvement. Also, you can
> compare the time taken for the device to tune now. It is quite
> a lot faster compared to without this patch. So you or any other
> user should be happy. :-)
>
>
> I don't think that in any way, the init should be used at init as
> you say, which sounds pretty much incorrect.
Maybe the function names should be modified to avoid confusion with the
init driver callback.
Regards,
Andreas
next prev parent reply other threads:[~2011-12-12 12:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-10 4:44 v4 [PATCH 09/10] CXD2820r: Query DVB frontend delivery capabilities Manu Abraham
2011-12-10 11:47 ` Antti Palosaari
2011-12-10 12:47 ` Mauro Carvalho Chehab
2011-12-10 13:09 ` Antti Palosaari
2011-12-10 13:18 ` Mauro Carvalho Chehab
2011-12-12 4:28 ` Manu Abraham
2011-12-12 12:43 ` Andreas Oberritter [this message]
2011-12-12 12:55 ` Manu Abraham
2011-12-12 13:41 ` Antti Palosaari
2011-12-12 13:57 ` Manu Abraham
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=4EE5F6D4.4050500@linuxtv.org \
--to=obi@linuxtv.org \
--cc=abraham.manu@gmail.com \
--cc=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
/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.