From: Dennis Borgmann <dennis.borgmann@googlemail.com>
To: alsa-devel@alsa-project.org
Subject: snd_pcm_wait won't return
Date: Wed, 16 Jun 2010 08:42:31 +0200 [thread overview]
Message-ID: <4C187257.6060105@googlemail.com> (raw)
Dear alsa-devel list!
I already posted this on alsa-users, but this list doesn't seem to be
that crowded so I will give it a try in here...
I am using the alsa-lib in one of my projects and within this project,
there is a call for snd_pcm_wait() on a machine, that plays sound. The
call itself looks like this:
snd_pcm_wait( pcm_handle, 1000 );
A few steps before, I had the timeout set to unlimited (-1), which
sometimes did not return at all. Now, it sometimes returns after the
timeout, but in result I cannot write anything to the soundcard anymore.
This error is reproducable if there are many underruns in a row. Since
this program runs in a network environment and receives its data from a
datastream, I sometimes cannot avoid those underruns.
So, what could be the error, that leads to alsa not responding anymore?
I can only revitalize the system after such an error by rebooting the
whole system (well, at least I did not find another solution like
snd_pcm_prepare or snd_pcm_recover).
Which additional informations do you need? What is there, that I can
provide in addition? Could this be an alsa-bug?
Kind regards,
Dennis
reply other threads:[~2010-06-16 6:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4C187257.6060105@googlemail.com \
--to=dennis.borgmann@googlemail.com \
--cc=alsa-devel@alsa-project.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.