From: Lee Revell <rlrevell@joe-job.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Alsa-devel@lists.sourceforge.net
Subject: Re: emu10k1 latency / capture period
Date: Tue, 22 Jun 2004 14:48:45 -0400 [thread overview]
Message-ID: <40D87F0D.5020703@joe-job.com> (raw)
In-Reply-To: <s5h8yefn8vu.wl@alsa2.suse.de>
Takashi Iwai wrote:
> At Mon, 21 Jun 2004 16:20:38 -0400,
> Lee Revell wrote:
>
>>The capture will be driven by the playback interrupts (I think
>>EFX_BUFFER(HALF)FULL). This would look very similar to the
>>interrupt handler example #2 in your ALSA driver guide, which
>>uses timer interrupts to drive the capture/playback, except
>>that for playback, in addition to calling snd_pcm_period_elapsed()
>>on the playback substream, we also maintain a pointer to the
>>corresponding *capture* substream, and call snd_pcm_period_elapsed()
>>on it, manually tracking the frames processed in the same way the timer
>>interrupt example does.
>
>
> Even if we ignore the capture interrupts and use an additional
> interrupt source (e.g. an extra playback stream), the size of capture
> buffer still must follow the restriction. That is, the minimal
> capture buffer size is still 384 x 2 bytes, although the period size
> can be set independently to smaller than 384 bytes.
>
Doesn't matter. The inputs and outputs are GPR-mapped, so if we connect
a physical input to an FXBus channel, that FXBus channel will see the
exact samples that are arriving from that input, with zero latency. If
the FXBus channel did not get filled with data until the capture buffer
was half full, you would be correct.
This solution will not allow low latency capture directly from the
physical input, it only works for the FXBus channels.
One correction to my design: The handler for IPR_EFXBUFFER(HALF)FULL
is not where we need to call snd_pcm_period_elapsed on the capture
stream, it is IPR_CHANNELLOOP.
Lee
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
next prev parent reply other threads:[~2004-06-22 18:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 20:14 emu10k1 latency / capture period Lee Revell
2004-06-16 20:52 ` James Courtier-Dutton
2004-06-16 21:02 ` Lee Revell
2004-06-20 4:06 ` Lee Revell
2004-06-21 15:35 ` Takashi Iwai
2004-06-21 15:54 ` Takashi Iwai
2004-06-21 20:20 ` Lee Revell
2004-06-22 11:13 ` Takashi Iwai
2004-06-22 11:29 ` Jaroslav Kysela
2004-06-22 12:47 ` Takashi Iwai
2004-06-22 21:15 ` Lee Revell
2004-06-28 20:44 ` Lee Revell
2004-06-22 20:26 ` Lee Revell
2004-06-22 18:48 ` Lee Revell [this message]
2004-06-21 20:25 ` Lee Revell
2004-07-08 0:40 ` Lee Revell
-- strict thread matches above, loose matches on Subject: below --
2004-06-17 9:06 Peter Zubaj
2004-06-17 18:37 ` Lee Revell
2004-06-17 23:26 ` Paul Davis
2004-06-18 9:33 ` Takashi Iwai
2004-06-18 19:39 ` Lee Revell
2004-06-18 23:26 ` Lee Revell
2004-06-21 8:03 Peter Zubaj
2004-06-21 15:26 ` Takashi Iwai
2004-06-21 20:27 ` Lee Revell
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=40D87F0D.5020703@joe-job.com \
--to=rlrevell@joe-job.com \
--cc=Alsa-devel@lists.sourceforge.net \
--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.