mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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> |
||
|---|---|---|
| .. | ||
| acp | ||
| mixer | ||
| 90-pipewire-alsa.rules | ||
| acp-tool.c | ||
| alsa-acp-device.c | ||
| alsa-compress-offload-device.c | ||
| alsa-compress-offload-sink.c | ||
| alsa-pcm-device.c | ||
| alsa-pcm-sink.c | ||
| alsa-pcm-source.c | ||
| alsa-pcm.c | ||
| alsa-pcm.h | ||
| alsa-seq-bridge.c | ||
| alsa-seq.c | ||
| alsa-seq.h | ||
| alsa-udev.c | ||
| alsa.c | ||
| alsa.h | ||
| compress-offload-api-util.c | ||
| compress-offload-api-util.h | ||
| compress-offload-api.c | ||
| compress-offload-api.h | ||
| meson.build | ||
| test-hw-params.c | ||
| test-timer.c | ||