Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: gsantosh@codeaurora.org
To: alsa-devel@alsa-project.org, tiwai@suse.de, lgirdwood@gmail.com
Subject: Question on wait_for_avail function
Date: Wed, 5 Jun 2013 08:28:14 -0000	[thread overview]
Message-ID: <1794d77072add642c43309c0a06bfadb.squirrel@www.codeaurora.org> (raw)

Hi Liam,

Consider an use case
1) Write is blocked as there is no space to write the data,
after the return from snd_pcm_playback_avail()function in wait_for_avail
2) HAL issues pause in parallel to the write
I see that the following function snd_pcm_post_pause unblock the write
		wake_up(&runtime->sleep);
		wake_up(&runtime->tsleep);
But i do not see any case handling for the pause state in the
wait_for_avail function, it is not coming out of the for loop as there
will not be any change in the buffer states.

Please explain what is the intention behind the wake in pause callback.

Want to understand why there is no handling of pause in wait_for_avail
function.

and also is there any restriction from ALSA framework that we should not
issue pause while write is blocked or going on.

Regards,
Santosh M G.

             reply	other threads:[~2013-06-05  8:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05  8:28 gsantosh [this message]
2013-06-05  9:17 ` Question on wait_for_avail function Clemens Ladisch
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=1794d77072add642c43309c0a06bfadb.squirrel@www.codeaurora.org \
    --to=gsantosh@codeaurora.org \
    --cc=alsa-devel@alsa-project.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