pipewire/spa/plugins/alsa
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
..
acp acp: move acp_dict_lookup to public header 2024-03-18 11:41:01 +01:00
mixer Add SOC-style jack names to HDMI audio paths 2024-03-01 09:33:55 +00:00
90-pipewire-alsa.rules Update 90-pipewire-alsa.rules with support for Astro Mixamp Pro TR. 2024-04-01 18:31:10 +00:00
acp-tool.c
alsa-acp-device.c alsa: improve acp device/node object paths 2024-03-18 11:41:37 +01:00
alsa-compress-offload-device.c alsa-compress-offload-device: notify observers when profile changes 2024-04-09 09:03:49 +00:00
alsa-compress-offload-sink.c alsa: use debug types instead of custom function 2024-01-30 12:19:13 +01:00
alsa-pcm-device.c alsa-pcm-device: notify observers when profile changes 2024-04-09 09:03:49 +00:00
alsa-pcm-sink.c alsa: increase buffers when using small buffer 2024-01-22 12:10:51 +01:00
alsa-pcm-source.c
alsa-pcm.c alsa-pcm: set threshold to final value before set_swparams is called 2024-04-09 09:03:49 +00:00
alsa-pcm.h spa: alsa: Read ctl events instead of doing a global diff 2024-03-14 10:13:41 -04:00
alsa-seq-bridge.c spa: small cleanups 2024-01-10 11:35:54 +01:00
alsa-seq.c alsa: fix rate matching in the sequencer 2023-12-05 15:12:27 +01:00
alsa-seq.h alsa: fix rate matching in the sequencer 2023-12-05 15:12:27 +01:00
alsa-udev.c alsa: add option to skip the busy check 2024-03-22 12:42:48 +01:00
alsa.c meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00
alsa.h
compress-offload-api-util.c
compress-offload-api-util.h
compress-offload-api.c
compress-offload-api.h
meson.build meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00
test-hw-params.c
test-timer.c