Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: gsantosh@codeaurora.org
Cc: tiwai@suse.de, alsa-devel@alsa-project.org, lgirdwood@gmail.com
Subject: Re: Question on wait_for_avail function
Date: Wed, 05 Jun 2013 11:17:23 +0200	[thread overview]
Message-ID: <51AF0223.5020901@ladisch.de> (raw)
In-Reply-To: <1794d77072add642c43309c0a06bfadb.squirrel@www.codeaurora.org>

gsantosh@codeaurora.org wrote:
> 2) HAL issues pause in parallel to the write

This is illegal.
<http://www.alsa-project.org/main/index.php/SMP_Design> says:
| The use of returned handles [such as snd_pcm_t*] must be serialized in
| the application using own locking scheme.

If you want to issue a pause while waiting for data to be written, use
non-blocking writes.


Regards,
Clemens

  reply	other threads:[~2013-06-05  9:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05  8:28 Question on wait_for_avail function gsantosh
2013-06-05  9:17 ` Clemens Ladisch [this message]
2013-06-06  6:25   ` Patrick Lai
2013-06-06  6:53     ` Takashi Iwai
2013-06-06 18:29       ` gsantosh
2013-06-07 10:55         ` 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=51AF0223.5020901@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=gsantosh@codeaurora.org \
    --cc=lgirdwood@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox