pipewire/spa/plugins/alsa
Wim Taymans 685aed1de2 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-22 16:48:43 +02:00
..
acp alsa: add option to disable pro-audio profiles 2025-07-02 08:11:48 -04:00
mixer Option of analog or iec958 stereo output, both merging volume switches 2025-07-21 12:19:13 +00:00
90-pipewire-alsa.rules Add ACP for Logitech 407 USB PC Speaker set 2025-07-21 12:25:26 +00:00
acp-tool.c spa: acp: make spa-acp-tool debug output easier to read 2025-03-09 16:15:56 +02:00
alsa-acp-device.c acp: remove channel limit from API 2025-04-04 15:46:03 +02:00
alsa-compress-offload-device.c spa: alsa: avoid potential uninitialized variable use 2024-09-18 19:54:13 +00:00
alsa-compress-offload-sink.c alsa-compress-offload-sink: Improve write_queued_output_buffers comments 2025-07-18 10:53:59 +02:00
alsa-pcm-device.c spa: alsa: avoid potential uninitialized variable use 2024-09-18 19:54:13 +00:00
alsa-pcm-sink.c spa: acp: get and emit UCM information for SplitPCM devices 2024-12-21 16:03:19 +02:00
alsa-pcm-source.c spa: acp: get and emit UCM information for SplitPCM devices 2024-12-21 16:03:19 +02:00
alsa-pcm.c alsa: update resampler requested size before reading 2025-07-22 16:48:43 +02:00
alsa-pcm.h alsa-pcm: add support for api.alsa.dll-bandwidth-max 2025-07-07 10:40:11 +00:00
alsa-seq-bridge.c alsa: remove UMP negotiation constraint 2025-06-18 10:10:10 +02:00
alsa-seq.c alsa: don't log unknown events with info 2025-06-20 15:49:17 +02:00
alsa-seq.h *: unify config.h handling 2025-05-30 10:24:13 +00:00
alsa-udev.c alsa-udev: support alsa.use-ucm 2025-06-17 12:54:39 +02: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: Remove unused variable 2025-07-18 10:53:52 +02: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