All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Lai <plai@codeaurora.org>
To: alsa-devel <alsa-devel@alsa-project.org>
Cc: Mark Brown <broonie@opensource.wolfsonmciro.com>
Subject: Playback and capture synchronization
Date: Tue, 08 Nov 2011 18:19:29 -0800	[thread overview]
Message-ID: <4EB9E331.8070401@codeaurora.org> (raw)

Hi,

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, 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. Is there a better way to
deal with my use case from ALSA API standpoint?

Thanks
Patrick

----
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

             reply	other threads:[~2011-11-09  2:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09  2:19 Patrick Lai [this message]
2011-11-09 11:55 ` Playback and capture synchronization Clemens Ladisch
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=4EB9E331.8070401@codeaurora.org \
    --to=plai@codeaurora.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmciro.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.