pipewire/spa/plugins/alsa
Wim Taymans f515f12916 alsa: update resampler requested size before reading
spa_alsa_read is called from the source process function when we are a
follower and no buffer is ready yet.

Part of the rate correction was performed by the ALSA driver when it
woke up but now, the resampler has updated the requested size and we
need to requery it before we can start reading samples.

Otherwise, we end up with requested samples from before the rate update
and we might not give enough samples to the resampler. In that case, the
adapter will call us again and we will again try to produce a buffer
worth of the requested samples, which will xrun.
2025-07-23 14:58:57 +02:00
..
acp acp: Trim trailing whitespace in monitor name from HDMI ELD 2024-10-06 12:44:20 +02:00
mixer alsa-card-profiles: revert HDMI/AC3 profiles 2024-07-14 12:01:31 +03: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 Fix compilation with -Werror=float-conversion 2024-06-18 12:17:56 +02:00
alsa-acp-device.c spa: alsa: do not allow setting Route that is not in current profile 2025-02-12 18:17:30 +02:00
alsa-compress-offload-device.c spa: alsa: avoid potential uninitialized variable use 2024-09-25 10:08:22 +02:00
alsa-compress-offload-sink.c Fix typos 2024-05-22 09:19:34 +02:00
alsa-pcm-device.c spa: alsa: avoid potential uninitialized variable use 2024-09-25 10:08:22 +02:00
alsa-pcm-sink.c alsa: handle the case where the driver is destroyed 2024-11-18 10:54:30 +01:00
alsa-pcm-source.c alsa: handle the case where the driver is destroyed 2024-11-18 10:54:30 +01:00
alsa-pcm.c alsa: update resampler requested size before reading 2025-07-23 14:58:57 +02:00
alsa-pcm.h alsa: handle the case where the driver is destroyed 2024-11-18 10:54:30 +01:00
alsa-seq-bridge.c impl-port: add port.group property 2024-06-24 13:38:09 +02:00
alsa-seq.c Fix compilation with -Werror=float-conversion 2024-06-18 12:17:56 +02:00
alsa-seq.h alsa-seq: configure pool sizes better 2024-05-13 15:25:52 +02: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 spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00
compress-offload-api-util.c alsa-compress-offload: Add device object and udev based autodetection 2023-09-02 08:28:22 +00:00
compress-offload-api-util.h alsa-compress-offload: Add device object and udev based autodetection 2023-09-02 08:28:22 +00:00
compress-offload-api.c alsa-compress-offload-sink: major sink rework 2023-02-24 14:15:13 +01:00
compress-offload-api.h alsa-compress-offload: Add device object and udev based autodetection 2023-09-02 08:28:22 +00:00
meson.build meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00
test-hw-params.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-timer.c fix compilation some more 2024-06-18 15:41:12 +02:00