All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Luttenberger <m.luttenberger@avibit.com>
To: alsa-devel@alsa-project.org
Subject: Problems with snd_pcm_wait(..)
Date: Mon, 11 Jan 2010 12:38:56 +0100	[thread overview]
Message-ID: <4B4B0DD0.8090900@avibit.com> (raw)

Hey,


I tried to implement a callback functionality with ALSA based on the 
example given at 
http://www.cs.utk.edu/~vose/linux/equalarea.com/alsa-audio.html#interruptex. 
Especially the while-loop is basically the same in my program. However, 
it doesn't work. I can trace the program to snd_pcm_wait(..) which just 
waits endlessly.

The whole thing is called within a thread. The thread is still 
accessible from elsewhere in the pogram. It's just the 
snd_pcm_wait(..)-function which does not return although a time-out of 
1000 ms is given.

If I don't wait for the device I get the following assertion:
pcm.c:1079: snd_pcm_writei: Assertion `size == 0 || buffer' failed.

Any ideas what could be wrong?




greetings..
..Markus

             reply	other threads:[~2010-01-11 11:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 11:38 Markus Luttenberger [this message]
2010-01-11 11:45 ` Problems with snd_pcm_wait(..) Jaroslav Kysela
2010-01-11 11:48 ` Markus Luttenberger

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=4B4B0DD0.8090900@avibit.com \
    --to=m.luttenberger@avibit.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.