* xrun and snd_pcm_prepare.
@ 2002-09-16 8:56 Shaju Abraham
2002-09-16 12:56 ` Paul Davis
0 siblings, 1 reply; 2+ messages in thread
From: Shaju Abraham @ 2002-09-16 8:56 UTC (permalink / raw)
To: ALSA development
Hi,
In aplay utility to playback music, we see that if the return value
is -EPIPE, a function xrun() is called. This function does nothing more
than snd_pcm_prepare(handle). What is the meaning of receiving a -EPIPE
return value to a application? and, Why cannot this be done at the
driver level itself? say in pcm_native.c .
Is it ok if this snd_pcm_prepare is called from pcm_native.c instead of
returning -EPIPE to the application?
--Shaju Abraham
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: xrun and snd_pcm_prepare.
2002-09-16 8:56 xrun and snd_pcm_prepare Shaju Abraham
@ 2002-09-16 12:56 ` Paul Davis
0 siblings, 0 replies; 2+ messages in thread
From: Paul Davis @ 2002-09-16 12:56 UTC (permalink / raw)
To: Shaju Abraham; +Cc: ALSA development
> In aplay utility to playback music, we see that if the return value
>is -EPIPE, a function xrun() is called. This function does nothing more
>than snd_pcm_prepare(handle). What is the meaning of receiving a -EPIPE
>return value to a application? and, Why cannot this be done at the
>driver level itself? say in pcm_native.c .
EPIPE signals an xrun (over- or under-run). Its analogous to a POSIX
pipe that has either filled up or has nothing to read. It means that
application has failed to keep up with the hardware.
>Is it ok if this snd_pcm_prepare is called from pcm_native.c instead of
>returning -EPIPE to the application?
no, its not.
behaviour when xruns happen is not automatic. sometimes the driver
will do something, sometimes user space wants to know about it and
take care of the situation with its own approach.
--p
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-16 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-16 8:56 xrun and snd_pcm_prepare Shaju Abraham
2002-09-16 12:56 ` Paul Davis
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.