snd_pcm_hwsync
Hi all:
Sometimes, snd_pcm_hwsync would return -32 (-EPIPE).
I can't see why. After snd_pcm_hwsync failed, snd_pcm_avail_update would return a much bigger positive value than pcm_hw_bufsize.
Can any one tell me why? and how to avoid such questions?
--
The sun is shinny but the ice is slippery.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
Quoted 6 lines · Joe Hsu
Hi all:
Sometimes,snd_pcm_hwsyncwould return -32 (-EPIPE).
I can't see why. Aftersnd_pcm_hwsyncfailed,snd_pcm_avail_updatewould return a much bigger positive value thanpcm_hw_bufsize.Can any one tell me why? and how to avoid such questions?
-EPIPE means xrun (over or underrun - new data exceed the ring buffer or an application does not put new data in time)
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 8 lines
Quoted 4 lines · Joe Hsu
Hi all:
Sometimes,snd_pcm_hwsyncwould return -32 (-EPIPE).
I can't see why. Aftersnd_pcm_hwsyncfailed,snd_pcm_avail_updatewould return a much bigger positive value thanpcm_hw_bufsize.
Quoted 6 lines
-EPIPEmeans xrun (over or underrun - new data exceed the ring buffer or an application does not put new data in time)Jaroslav
-----
I will check out. I used real time scheduling already. Maybe I should
enlarge snd_pcm_hwbufsize. Thanks. :)
----
The sun is shinny but the ice is slippery.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642