Wim Taymans
7303a55b50
treewide: replace EBADFD with posix EBADF
...
EBADF was used in some places already, some other places used EBADFD
(with and without an #ifdef). EBADFD is linux specific.
2026-05-27 13:36:39 +02:00
Wim Taymans
7254b8288f
alsa: clean up the impl on errors
2026-05-06 13:59:43 +02:00
Carlos Rafael Giani
c504851dca
alsa-compress-offload-sink: Improve write_queued_output_buffers comments
2025-07-18 10:53:59 +02:00
Wim Taymans
f7fdafc203
loop: add method to run a function with the lock
...
Convert some _invoke to _locked
2025-05-29 10:17:16 +02:00
Diego Viola
7410755c03
Fix typos
...
found them with codespell.
Signed-off-by: Diego Viola <diego.viola@gmail.com>
2024-05-22 09:19:34 +02:00
Wim Taymans
9c02a1df17
alsa: use debug types instead of custom function
2024-01-30 12:19:13 +01:00
Barnabás Pőcze
06ba425378
treewide: use spa_assert_not_reached() instead of assert(false)
2023-09-16 17:50:25 +02:00
Barnabás Pőcze
436787d6ba
treewide: try to use const char * for string literals
2023-09-16 17:47:35 +02:00
Carlos Rafael Giani
d20fc2a8ec
alsa-compress-offload-sink: Fix format renegotation
...
The have_format flag was not being properly processed, leading to
incorrect behavior when the format param was enumerated.
2023-06-24 16:54:15 +02:00
Wim Taymans
7b6680ba57
plugins: simplify target_ handling
...
Drivers should only read the target_ values in the timeout, update the
timeout with the new duration and then update the position.
For the position we simply need to add the previous duration to the
position and then set the new duration + rate.
Otherwise, everything else should read the duration/rate and not use
the target_ values.
2023-03-24 11:36:15 +01:00
Wim Taymans
6e8625cf96
node: update the duration/rate from the target
...
Before scheduling the graph from the driver, update the duration and
rate with the new targets.
2023-03-23 18:39:27 +01:00
Barnabás Pőcze
7b3ef1ac4e
spa: alsa: fix spa_log_trace_fp() args
...
Less arguments were passed than required by the format string.
2023-02-25 20:17:51 +01:00
Carlos Rafael Giani
031f992981
alsa-compress-offload-sink: major sink rework
...
* Add support for running the sink as a driver
* Detect which compressed formats are actually supported
* Correctly open/close/start/stop device according to the node commands
* Shift away from tinycompress and use Compress-Offload ioctls directly
to be able to access various caps information (including fragment sizes)
which are unavailable in the tinycompress API
* Implement SPA_PARAM_PropInfo and SPA_PARAM_Props support
2023-02-24 14:15:13 +01:00
Barnabás Pőcze
934ab3036e
treewide: use SPDX tags to specify copyright information
...
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.
See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00
Carlos Rafael Giani
293ba8aee3
alsa-compress-offload-sink: Miscellaneous clean up
...
- Fix typo
- Fix index check in port_enum_formats()
2023-01-24 08:44:14 +00:00
Carlos Rafael Giani
e9a2c6aa34
Rename "compressed-offload to "Compress-Offload" in the code
2023-01-24 08:44:14 +00:00