From: Stas Sergeev <stsp@aknet.ru>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA devel <alsa-devel@alsa-project.org>
Subject: Re: [patch] snd-pcsp fixes
Date: Fri, 30 Oct 2009 17:23:09 +0300 [thread overview]
Message-ID: <4AEAF6CD.7030706@aknet.ru> (raw)
In-Reply-To: <s5hy6mtxe11.wl%tiwai@suse.de>
Takashi Iwai wrote:
>>> But, I still don't understand why it has to be zero. The first
>>> bit-flip is done inside the trigger-start, so the next wakeup should
>>> be after the calculated ns. Isn't it?
>> That was the logic you invented, but
>> initially, and with my patch, there
>> is no bitflip on start trigger. Or,
>> at least, not supposed to be - there
>> was only a timer mode setup, or if not -
>> that was a bug. :)
> OK, then we should revert the zero-delay logic again.
> The zero-delay start means to do the bitflip again immediately.
> This is wrong, of course.
What do you mean? As I said above, there
seems to be no first bitflip on a start trigger,
neither initially, nor with my current patch.
There was only the timer _mode_ setup, the
GATE input of the timer was not supposed to
be touched. The logic you invented, OTOH,
does the first bitflip there, and then
advances the timer, which is also correct,
but is more complicated. Do you think there
was a bug that actually did the first
bitflip anyway?
> It's for speeding up. We should minimize any calculations in the
> hrtimer callback.
Ok but snd_pcm_format_signed() and
snd_pcm_format_width() are really trivial
functions, so I just thought this is not
worth an efforts. But if you think this
have to be optimized, then fine.
next prev parent reply other threads:[~2009-10-30 14:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-21 17:43 [patch] snd-pcsp fixes Stas Sergeev
2009-10-30 11:14 ` Takashi Iwai
2009-10-30 12:22 ` Stas Sergeev
2009-10-30 12:27 ` Takashi Iwai
2009-10-30 14:23 ` Stas Sergeev [this message]
2009-10-30 15:18 ` Takashi Iwai
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=4AEAF6CD.7030706@aknet.ru \
--to=stsp@aknet.ru \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.