pulseaudio/src
Peter Ujfalusi 3c73e2130f alsa-util: Reset hwparams_copy before the second try of buffer setup
hwparams_copy needs to be reset (as it is also reset for the third and
fourth try) before the second try.

If the reset is not done and the first try fails:
D: [lt-pulseaudio] alsa-util.c: Maximum hw buffer size is 743 ms
I: [lt-pulseaudio] alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument
I: [lt-pulseaudio] alsa-util.c: snd_pcm_hw_params_set_period_size_near() failed: Invalid argument
I: [lt-pulseaudio] alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument
D: [lt-pulseaudio] alsa-util.c: Set only period size (to 1102 samples).

We have three failures and finally the fourth (only period size) succeed.

With this patch:
D: [lt-pulseaudio] alsa-util.c: Maximum hw buffer size is 743 ms
I: [lt-pulseaudio] alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument
D: [lt-pulseaudio] alsa-util.c: Set period size first (to 1102 samples), buffer size second (to 4408 samples).

We only fail with the first try, the second (period followed by buffer) is
fine.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2014-03-24 10:24:00 +02:00
..
daemon Remove all references to the removed KDE files 2014-03-03 18:06:20 +02:00
modules alsa-util: Reset hwparams_copy before the second try of buffer setup 2014-03-24 10:24:00 +02:00
pulse mainloop-api: Improve pa_mainloop_api_once() documentation 2014-03-15 13:01:03 +02:00
pulsecore core-util: Make pa_yes_no() translatable 2014-03-24 09:18:41 +02:00
tests Make tests compile on FreeBSD 2014-02-25 14:28:36 +02:00
utils pacat: Fix partially translated message 2014-03-24 09:22:20 +02:00
.gitignore Remove all references to the removed KDE files 2014-03-03 18:06:20 +02:00
depmod.py remove remaining $ 2008-06-18 22:38:32 +02:00
Makefile.am Remove all references to the removed KDE files 2014-03-03 18:06:20 +02:00
map-file Add pa_channels_valid() 2013-12-15 11:44:35 +01:00