Skip to contentSkip to conversation

snd_pcm_hwsync

DISCUSSION Joe Hsu 2 participants 3 messages Mar 15, 2006 – Mar 16, 2006

lore
Share & tools
lore

Joe Hsu

author
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Joe Hsu

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?

-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

author
#2 lore raw
Quoted 8 lines
Quoted 4 lines · Joe Hsu

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.

Quoted 6 lines

-EPIPE means 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