* snd_pcm_avail_update() returning large values @ 2011-05-06 0:37 Baek Chang 2011-05-06 3:05 ` Raymond Yau 0 siblings, 1 reply; 2+ messages in thread From: Baek Chang @ 2011-05-06 0:37 UTC (permalink / raw) To: alsa-devel Hi, Occasionally, when using pulseaudio I see the following message: snd_pcm_avail_update() returned a value that is exceptionally large. This seems to be an issue with the ALSA driver itself. My question is how does snd_pcm_avail_update(), get updated? It uses hw buffer positions correct? Is there an example driver that implements snd_pcm_avail_update() correctly and updates buffer positions correctly? Thanks Baek ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: snd_pcm_avail_update() returning large values 2011-05-06 0:37 snd_pcm_avail_update() returning large values Baek Chang @ 2011-05-06 3:05 ` Raymond Yau 0 siblings, 0 replies; 2+ messages in thread From: Raymond Yau @ 2011-05-06 3:05 UTC (permalink / raw) To: ALSA Development Mailing List 2011/5/6 Baek Chang <baeksan@ccrma.stanford.edu> > Hi, > > Occasionally, when using pulseaudio I see the following message: > > snd_pcm_avail_update() returned a value that is exceptionally large. > > This seems to be an issue with the ALSA driver itself. My question is how > does snd_pcm_avail_update(), get updated? It uses hw buffer positions > correct? Is there an example driver that implements snd_pcm_avail_update() > correctly and updates buffer positions correctly? > > Thanks > Baek > You have to provide a test case which can reproduce the problem (e.g.http://thread.gmane.org/gmane.linux.alsa.devel/78521 ) To debug, you need to enable DEBUG_TIMING in pulseaudio/src/modules/alsa/alsa-sink.c and pulseaudio/src/modules/alsa/alsa-source.c and follow http://colin.guthr.ie/2010/09/compiling-and-running-pulseaudio-from-git/ The free-glitch mode is tailor made for snd-hda-intel , so it should be the example driver aplay can use minimum period size without any xrun on my snd-hda-intel aplay -Dhw:CARD=Intel -v --period-size=32 any.wav ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-06 3:05 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-05-06 0:37 snd_pcm_avail_update() returning large values Baek Chang 2011-05-06 3:05 ` Raymond Yau
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).