]> git.alsa-project.org Git - alsa-plugins.git/commit
pcm_pulse: set prebuf parameter according to software parameters
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 18 Nov 2012 10:01:49 +0000 (12:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Nov 2012 07:56:40 +0000 (08:56 +0100)
commita4226cfe029f10585eb36fb527fde9a07a534f93
tree7873031cbd66cd784ac292f0c495c14c2bddb3d4
parent9df5dc7dd628b0d692cf896c210a134e85e88915
pcm_pulse: set prebuf parameter according to software parameters

The current default value for prebuf is very high, almost the full
virtual ALSA buffer. This breaks some application especially where
low latency is involved.

This patch makes pcm_pulse implement the sw_params callback and get
the prebuf value from the ALSA software parameters. Thus the
trigger latency is much more like what an ALSA application should
expect from an ALSA PCM device.

Acked-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
pulse/pcm_pulse.c