All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@gmail.com>
To: Krzysztof Helt <krzysztof.h1@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ad1848 and cs4231 busy loop replacement
Date: Mon, 10 Sep 2007 15:13:24 +0200	[thread overview]
Message-ID: <46E542F4.7060608@gmail.com> (raw)
In-Reply-To: <8c74410a0709100542x6b5997d0hc893afb6f94acf4@mail.gmail.com>

On 09/10/2007 02:42 PM, Krzysztof Helt wrote:

> On 9/10/07, Rene Herman <rene.herman@gmail.com> wrote:

>> Well, no, sorry, but I consider that to be completely breaking the logic of
>> the code.
> 
> No I changed the logic of this code not to wait for specifically for
> callibration "start" but into calibration "under way".

No, waiting for calibration the be under way is what my 0/1 ms does. You are 
waiting for it to be nearly done, which is complete nonsense. One line below 
we are waiting for 250 ms (generally with _one_ pass through the loop -- we 
only wake up through signals) anyway!

The no delay at all from cs4231 is the logic -- when we've dropped MCE, ACI 
comes up (when auto-calibrating) and we only wait for it to finish. For 
ad1848, ACI up may take 5 cycles from MCE down so we delay 1 ms so we know 
we're testing correctly.

>> Your: wait unconditionally until calibration _nearly_ done, then go wait for
>> it for 250 ms to be really done.
>>
>> Mine: wait unconditionally until calibration has started, then go wait for
>> it for 250 ms to finish.

[ ... ]

> So the only difference is 6 (or 1) ms and this time will be spent in
> the loop anyway. Are we arguing 1ms (for CS4231) in 250ms waiting
> loop?

No, we are arguing maintaining code. Do not obscure the code flow for no 
reason. Fix your logic or (for what it's worth) I am going to NAK the change.

> I don't understand "keep them in sync".

In sync source-code wise. While the no delay from cs4231 may be the rule, 
ad1848 needs a small delay so if you'd wanted to keep them looking the same 
I wouldn't care about a 1 ms delay for cs4231 as well. If you don't, fine as 
well.

Rene.

  reply	other threads:[~2007-09-10 13:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-08 22:12 [PATCH] ad1848 and cs4231 busy loop replacement Krzysztof Helt
2007-09-09 21:09 ` Rene Herman
2007-09-09 21:19   ` Rene Herman
2007-09-10 17:17     ` Krzysztof Helt
2007-09-10  7:08   ` Krzysztof Helt
2007-09-10 11:54     ` Rene Herman
2007-09-10 12:42       ` Krzysztof Helt
2007-09-10 13:13         ` Rene Herman [this message]
2007-09-10 17:05           ` Krzysztof Helt
2007-09-10 18:18             ` Rene Herman

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=46E542F4.7060608@gmail.com \
    --to=rene.herman@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=krzysztof.h1@gmail.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.