Re: [pulseaudio-discuss] Controlling alsa and pulseaudio buffer size?

2011-09-15 Thread Raymond Toy
On Wed, Sep 14, 2011 at 4:30 PM, Kurt Taylor kurt.tay...@linaro.org wrote:



 On 14 September 2011 16:25, Raymond Toy r...@google.com wrote:

 In my application, I'm using alsa to set a particular buffer size.  Alsa
 usually complies, but from everything that I can tell, pulse audio is using
 some other fragment size.  This other fragment size also seems to be the
 time betwen interrupts which my application sees.  This messes up my
 application because it wants the interrupts at regular intervals based on
 the buffer size I set.

 Is there some way to make alsa and pulseaudio agree on the size?


 It is possible to turn off the ALSA period wakes in tschedule mode on some
 hardware. This would allow pulseaudio to manage it.

 See this thread:

 http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-January/008638.html

 So I should call snd_pcm_hw_params_get_period_wakeup to turn off the ALSA
period wakeups?  Then pulseaudio will manage it and use the period size that
I have set?

Ray
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Controlling alsa and pulseaudio buffer size?

2011-09-15 Thread Raymond Toy
On Wed, Sep 14, 2011 at 5:21 PM, pierre-louis.boss...@linux.intel.comwrote:


  In my application, I'm using alsa to set a particular buffer size.  Alsa
  usually complies, but from everything that I can tell, pulse audio is
  using
  some other fragment size.  This other fragment size also seems to be the
  time betwen interrupts which my application sees.  This messes up my
  application because it wants the interrupts at regular intervals based
  on
  the buffer size I set.
 
  Is there some way to make alsa and pulseaudio agree on the size?
 
 
  It is possible to turn off the ALSA period wakes in tschedule mode on
 some
  hardware. This would allow pulseaudio to manage it.
 
  See this thread:
 
 http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-January/008638.html

 Have you played with the ADJUST_LATENCY flag? If it is not set, then the
 total latency will not match the buffer size you configure.


I'm using ALSA, so I don't know how to set the ADJUST_LATENCY flag.

Any hints appreciated!

Ray
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Controlling alsa and pulseaudio buffer size?

2011-09-14 Thread Raymond Toy
In my application, I'm using alsa to set a particular buffer size.  Alsa
usually complies, but from everything that I can tell, pulse audio is using
some other fragment size.  This other fragment size also seems to be the
time betwen interrupts which my application sees.  This messes up my
application because it wants the interrupts at regular intervals based on
the buffer size I set.

Is there some way to make alsa and pulseaudio agree on the size?

Ray
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Controlling alsa and pulseaudio buffer size?

2011-09-14 Thread Kurt Taylor
On 14 September 2011 16:25, Raymond Toy r...@google.com wrote:

 In my application, I'm using alsa to set a particular buffer size.  Alsa
 usually complies, but from everything that I can tell, pulse audio is using
 some other fragment size.  This other fragment size also seems to be the
 time betwen interrupts which my application sees.  This messes up my
 application because it wants the interrupts at regular intervals based on
 the buffer size I set.

 Is there some way to make alsa and pulseaudio agree on the size?


It is possible to turn off the ALSA period wakes in tschedule mode on some
hardware. This would allow pulseaudio to manage it.

See this thread:
http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-January/008638.html




 Ray


 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss




-- 

Kurt Taylor (irc krtaylor)
Linaro Multimedia Team Lead
Linaro.org http://www.linaro.org/* **│ *Open source software for ARM SoCs
Follow *Linaro: *Facebook http://www.facebook.com/pages/Linaro |
Twitterhttp://twitter.com/#%21/linaroorg|
Blog http://www.linaro.org/linaro-blog/
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Controlling alsa and pulseaudio buffer size?

2011-09-14 Thread pierre-louis . bossart

 In my application, I'm using alsa to set a particular buffer size.  Alsa
 usually complies, but from everything that I can tell, pulse audio is
 using
 some other fragment size.  This other fragment size also seems to be the
 time betwen interrupts which my application sees.  This messes up my
 application because it wants the interrupts at regular intervals based
 on
 the buffer size I set.

 Is there some way to make alsa and pulseaudio agree on the size?


 It is possible to turn off the ALSA period wakes in tschedule mode on some
 hardware. This would allow pulseaudio to manage it.

 See this thread:
 http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-January/008638.html

Have you played with the ADJUST_LATENCY flag? If it is not set, then the
total latency will not match the buffer size you configure.
-Pierre



___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss