pipewire/spa/plugins
Martin Geier 5c8799a480 alsa-pcm: set threshold to final value before set_swparams is called
This patch fixes use case, when disable_tsched is set and
api.alsa.period-size is set to value different from default quantum size.

In a such configuration, threshold needs to be set to a final value
before snd_pcm_sw_params_set_avail_min is called to get IRQs with
right timing.

Avail minimum is calculated from a threshold set in the check_position_config.
The method returned different value for threshold right before playback
started and after the playback started. Therefore threshold used in
the snd_pcm_sw_params_set_avail_min was incorrect.

Force the check_position_config to use configured values when called
from spa_alsa_prepare as this method is called when starting new playback
and the state->period_frames and the state->rate are already known.

Signed-off-by: Martin Geier <martin.geier@streamunlimited.com>
2024-04-09 09:03:49 +00:00
..
aec spa: export log topic enumerations 2024-01-04 10:02:55 +00:00
alsa alsa-pcm: set threshold to final value before set_swparams is called 2024-04-09 09:03:49 +00:00
audioconvert spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
audiomixer spa: export log topic enumerations 2024-01-04 10:02:55 +00:00
audiotestsrc spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
avb spa: small cleanups 2024-01-10 15:51:01 +01:00
bluez5 bluez5: bap: determine SDU interval from codec frame duration 2024-04-01 19:13:01 +03:00
control spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
ffmpeg spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
jack spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
libcamera libcamera: add camera rotation property on nodes 2024-03-31 13:24:19 +02:00
support spa: improve null-audio-sink channels 2024-03-28 17:11:16 +01:00
test spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
v4l2 v4l2: Drop the first frame after camera startup 2024-03-30 14:14:44 +01:00
videoconvert videoconvert: Enable loading external converter plugins 2024-01-22 13:59:16 +00:00
videotestsrc spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
volume spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
vulkan vulkan: Sync renderer for blit filters 2024-04-08 20:24:30 +00:00
meson.build meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00