Dmitry Sharshakov
02a4758043
bluez5: aac, lc3plus: report bitpool changes
...
Behavior similar to SBC. This makes return value useful for media-sink logger.
2022-11-07 16:32:53 +00:00
Dmitry Sharshakov
1bea58c20b
bluez5: media-sink: fix bitpool increase
...
The free buffer check must happen before writing to check for leftover data in buffers. In case data is left over from previous submission, bitpool mustn't be increased.
Also improved logging by adding bitpool to the log message.
2022-11-07 16:32:53 +00:00
Dmitry Sharshakov
79b95e083a
bluez5: backend-native: report HFP AG battery indicator to UPower
2022-11-07 16:32:17 +00:00
Jonas Holmberg
bac7b10226
gitlab-ci: Add readline dependency
2022-11-07 16:30:40 +01:00
Jonas Holmberg
050a51aab3
meson_options: Add readline option
...
Make it possible to disable code that depends on readline even if
readline is pulled in by another dependency, like bluez.
2022-11-07 16:16:12 +01:00
Wim Taymans
02add5b3db
impl: don't return -ENOENT when no params
...
We checked above if the param is supported and return -ENOENT already.
When we actually go enumerate the params but don't have any, return 0
and not an error.
Fixes wireplumber#370
2022-11-07 12:36:15 +01:00
Wim Taymans
332fc0d9a5
v4l2: improve debug
2022-11-07 12:29:54 +01:00
Wim Taymans
6cffabd09d
v4l2: don't mmap when the buffer has data already
...
When the buffer has data (but no fd), don't mmap the buffer but simply
use the data pointer directly.
This makes v4l2 work with inlined buffer memory.
2022-11-07 11:52:02 +01:00
Wim Taymans
6bae31e519
v4l2: pretend a dupped fd is the same as the original one
...
This makes it possible to reqbufs on a dupped fd with previously
reqbufs.
2022-11-07 11:50:35 +01:00
Wim Taymans
492920ca35
test: add another 6.1 channelmix test
...
Reorder the bitmask in the natural channel order to avoid confusion.
Add another test with RL/RR/RC channels.
See #2809
2022-11-06 10:57:25 +01:00
Wim Taymans
ccec687104
test: add unit test for 6.1 up and downmix
...
See #2809
2022-11-05 17:12:35 +01:00
Wim Taymans
59f9ed41fb
v4l2: use param_info to track param updates
2022-11-05 14:01:27 +01:00
Wim Taymans
11ab47e4c9
v4l2: suggest stride in Buffer param
2022-11-05 13:12:24 +01:00
Wim Taymans
c3206fa687
v4l2: release ref after adding file to maps
2022-11-05 13:12:01 +01:00
Wim Taymans
46123cfcec
v4l2: improve debug
2022-11-05 13:11:43 +01:00
Wim Taymans
0e8ea21098
v4l2: fix compilation on older versions
2022-11-04 21:26:19 +01:00
Wim Taymans
b6f1935cfb
v4l2: fix streaming compliance test
...
Add sequence number to frames.
Fix mmap tracking.
Improve debug.
Set right flags on dupped fds.
Handle blocking dqbuf.
Set timestamp and field on buffers.
Dequeue buffers in streamoff.
2022-11-04 17:34:04 +01:00
Wim Taymans
7631316186
buffer: add option to reverse filter priority
...
By default, buffer negotiation favours the default property values of
the output node. Make this configurable and reverse this logic when the
output is a driver.
This makes it so that a stream connecting to a source will negotiate
with the preferences of the stream and not the source.
An example is a stream that wants 4 buffers from v4l2-source, because
v4l2-source has a default of 4 buffers, this will always result in 4
buffers, ignoring the preference of the stream.
2022-11-04 15:22:01 +01:00
Wim Taymans
503bb94645
v4l2: we can request just 1 buffer perfectly fine
2022-11-04 15:21:32 +01:00
Wim Taymans
4186e3da6b
v4l2: implement G/S_PRIORITY
...
Return busy when reqbufs is called from an fd that is not the owner
of the current reqbufs.
2022-11-04 13:14:46 +01:00
Wim Taymans
ccf2891070
v4l2: fix buffer amount check
...
When we get buffers from the driver, check if we have at least as many
as we requested. If we have more, that's ok, we will simply not queue
them.
Previously we would ignore the input number of buffers and use the
allocated amount to fill up the buffer array, which might be too small
and then we crash.
2022-11-04 13:10:55 +01:00
Wim Taymans
ec5f2d7337
v4l2: add Format on the node as well
...
So that we can see the format in pw-top
2022-11-04 13:10:17 +01:00
Wim Taymans
5a299e5685
v4l2: improve debug
2022-11-04 11:00:56 +01:00
Wim Taymans
4a92f355ad
v4l2: fix enum_input, don't clear the index
2022-11-04 11:00:19 +01:00
Wim Taymans
8900722f55
v4l2: only accept CAPTURE buffer types in try_fmt
2022-11-04 10:59:39 +01:00
Wim Taymans
5a262b4bd3
v4l2: return a default format from G_FMT
2022-11-04 10:59:13 +01:00
Wim Taymans
73ad5d9057
v4l2: set colorspace
2022-11-04 10:58:50 +01:00
Wim Taymans
0f13d5a65e
v4l2: reuse fd when opening the same path
...
When we open the same device multiple times, reuse the file structure
and dup the fd.
2022-11-04 10:36:49 +01:00
Wim Taymans
4cb1c790a4
v4l2: set the description correctly
...
The description needs to match what is expected by the compliance
test.
2022-11-03 17:36:55 +01:00
Wim Taymans
9aff5dfc8f
v4l2: make bus_info compliant
...
It needs to start with something accepted by the compiance test.
2022-11-03 17:35:48 +01:00
Wim Taymans
2c4b574b8f
v4l2: handle errors better
...
Only store the eventfd when valid or else we will try to close an
invalid fd.
Keep the errno value around, just in case it gets overwritten by
the free_file call.
2022-11-03 17:34:00 +01:00
Wim Taymans
faab559568
v4l2: handle multiple /dev/videoX nodes
...
Associate each PipeWire video source to a video device and let
applications probe and open multiple sources.
2022-11-03 13:27:49 +01:00
Wim Taymans
fbd3885ff1
v4l2: small cleanups
...
Improve size scoring.
Check video size after parsing.
2022-11-03 13:25:44 +01:00
Wim Taymans
866ef2ef21
v4l2: improve debug of fourcc
2022-11-03 13:25:10 +01:00
Wim Taymans
a6e3ac68d2
v4l2: use the node description as the card name
2022-11-03 13:23:26 +01:00
Wim Taymans
cd9dc974f5
v4l2: improve error debugging
2022-11-03 13:22:38 +01:00
Wim Taymans
44d743ed95
spa: make all format parsing fields optional
...
Just like the optional build, make all field parsing optional. This
will leave the fields with their default values if they are not parsed
from the param.
We can then remove our custom functions and use the generic ones in
various places.
2022-11-03 13:13:07 +01:00
Wim Taymans
74447acedb
Add some more format checks
...
The format parse functions don't really check if the parsed values
make any sense so we need to to this ourselves.
2022-11-03 13:10:32 +01:00
Wim Taymans
c30d743198
pw-top: initialize info struct with 0
...
So that we don't accidentally print uninitialized values.
2022-11-03 13:08:48 +01:00
Wim Taymans
e3a4797063
pw-top: support MJPG and H264 formats
2022-11-02 17:14:40 +01:00
Wim Taymans
e0c0d9806f
libcamera: clear format info
...
Or else we end up with invalid data for the fields that did not get
initialized when parsing the format param.
2022-11-02 17:14:01 +01:00
Wim Taymans
3e4da8e8e4
filter-chain: emit en error when graph fails
2022-11-02 12:58:37 +01:00
Wim Taymans
f6e76f8356
filter-chain: add more default LADSPA search paths
...
Add /usr/lib/ladspa and LIBDIR to the default search path as well.
2022-11-02 12:57:16 +01:00
Wim Taymans
8ab70d02dc
stream: guard against node destroy
2022-11-02 12:56:45 +01:00
Wim Taymans
ef8114ff0c
filter-chain: improve some error messages
2022-11-02 12:42:31 +01:00
Wim Taymans
6bb73124aa
filter-chain: improve some float handling
...
Avoid some double to float conversions.
Use fmin and fmax.
2022-11-02 12:41:20 +01:00
Wim Taymans
f801dc0886
pulse-server: keep read index in sync
...
Keep the ringbuffer and read_index variable in sync or else we might ask
for more data than maxlength and cause an overflow.
Fixes #2799
2022-11-02 11:43:30 +01:00
Wim Taymans
51e8ff7d8e
libcamera: add EnumFormat param to the node
2022-11-02 10:35:48 +01:00
Wim Taymans
ef4b9745b2
libcamera: handle canceled requests
...
When a request is canceled, recycle it so we don't run out of buffers.
Implement getting and setting controls.
2022-10-31 19:03:55 +01:00
Wim Taymans
71d58e6445
v4l2: implement setting controls
2022-10-31 11:33:45 +01:00