From: Clemens Ladisch <clemens@ladisch.de>
To: Patrick Lai <plai@codeaurora.org>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmciro.com>
Subject: Re: Playback and capture synchronization
Date: Wed, 09 Nov 2011 12:55:14 +0100 [thread overview]
Message-ID: <4EBA6A22.6090308@ladisch.de> (raw)
In-Reply-To: <4EB9E331.8070401@codeaurora.org>
Patrick Lai wrote:
> I have a use case requiring playback and capture starting at the same
> time. Latency between starting of playback and capture streams need to
> be less than few PCM samples. Base on my understanding on ALSA which
> does not have the concept of grouping multiple streams,
snd_pcm_link()
> the best I can do is getting playback and capture to prepared state
> then trigger start two streams one after the other. Then, the latency
> would be the time for trigger start of first stream to complete.
If the driver doesn't actually implement starting of linked streams
(which would be pointless if the hardware doesn't support it), ALSA
calls the second trigger callback after the first one.
It might be possible to implement simultaneous starting of two streams.
What hardware (driver) are you using?
Regards,
Clemens
next prev parent reply other threads:[~2011-11-09 11:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 2:19 Playback and capture synchronization Patrick Lai
2011-11-09 11:55 ` Clemens Ladisch [this message]
2011-11-09 18:38 ` Patrick Lai
2011-11-09 22:36 ` Eliot Blennerhassett
[not found] <mailman.1622.1320881582.2097.alsa-devel@alsa-project.org>
2011-11-10 14:57 ` anish kumar
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=4EBA6A22.6090308@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmciro.com \
--cc=plai@codeaurora.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.