Commit graph

6220 commits

Author SHA1 Message Date
Wim Taymans
fee8bf69dd pulse-server: make method to schedule module unload 2021-04-21 13:11:16 +02:00
Wim Taymans
cd224942c7 protocol-simple: use work-queue for client cleanup 2021-04-21 13:03:08 +02:00
Wim Taymans
c70a5de526 pulse-server: use a work-queue to schedule destroy
Use the context work queue to schedule destroys from callbacks.
This is better because we can pass the destroyed object around and
implement just the action we need to do on it.
2021-04-21 12:55:49 +02:00
Wim Taymans
5041c44937 link-factory: destroy lingering error links
When a link is lingering and in error, use a work queue to destroy it
automatically.
2021-04-21 12:17:53 +02:00
Wim Taymans
0a3d44ac53 context: add method to get a work_queue
Make a method to get a work-queue from the context. There is one
work-queue to use and the context will allocate it when requested
and free when destroyed.

The work queue is handy to delay execution of some logic for later,
either in the next iteration of the main-loop or when an async
operation completed.

Export some work-queue methods.
2021-04-21 12:17:53 +02:00
Wim Taymans
bf5d40434d impl-link: don't clear ouput buffers in all cases
When we can't set the allocated buffers on the input port, don't
clear the buffers because they might be in use by the output port.

Fixes #1078
2021-04-21 12:17:53 +02:00
Huang-Huang Bao
01f2c91b89 bluez5: fix HSP HS profile enumeration
HSP don't supports codec switching.
2021-04-21 08:58:48 +00:00
Huang-Huang Bao
30e4e56852 bluez5: enable HSP HS volume control
It's only enabled for HSP AG previously.
2021-04-21 08:54:10 +00:00
Huang-Huang Bao
f56d08297d bluez5: correct RFCOMM command to set HSP HS volume 2021-04-21 08:54:10 +00:00
Huang-Huang Bao
0dde4f8774 bluez5: cache a2dp volumes activation info
So we don't get a sudden boost on soft volumes when switching profile/codec.
2021-04-21 08:54:10 +00:00
Nicolai Syvertsen
51c3290d11 Update Norwegian Nynorsk translation 2021-04-21 08:53:21 +00:00
Wim Taymans
7031471807 pulse-server: add property to make virtual nodes
Make a property to mark virtual nodes and use it to hide the client
id from the sink-input/source-output info in pulse-server.
2021-04-20 21:05:59 +02:00
Wim Taymans
0e91233569 impl-client: fix crash when updating permissions
After ensure_permissions, the default permission might be moved to a
different memory location. Get the new default permission in case it
moved.
2021-04-20 17:56:28 +02:00
Wim Taymans
5240850bc1 bluez: set device description to the bluez alias
Just like how PulseAudio does it.

Fixes #1064
2021-04-20 16:57:44 +02:00
Wim Taymans
648c9b432c pulse-server: set monitor.channel-volumes=true by default
Make a null-sink with monitor.channel-volumes=true by default if not
defined otherwise. This ensures the volume of the null-sink is
always transfered to the monitor ports.

Also only set the object.linger flag when undefined.
2021-04-20 09:36:14 +02:00
Peter Hutterer
1201795c46 Makefile.in: replace the various @foo@ with $(foo) variables
This leaves us with the actual meson replacements at the top and, at least
IMO, makes the file easier to read - in part because $(foo) is
syntax-highlighted so variables stick out more.
2021-04-20 07:11:06 +00:00
Peter Hutterer
83ed03d4cf Remove .gitignore files in subdirectories
With meson we no longer have generated files messing up the tree, so we no
longer need these files.
2021-04-20 07:10:15 +00:00
Peter Hutterer
d068cc2bcf INSTALL: use builddir, not build for the meson directory
builddir is slightly more self-explanatory than using "build" which could be
a command as well
2021-04-20 07:08:58 +00:00
scootergrisen
6f000124cb Update danish translation 2021-04-19 18:50:07 +00:00
Yuri Chornoivan
8061cb66bf po: Update Ukrainian translation 2021-04-19 15:37:43 +00:00
Wim Taymans
575163e644 pulse-server: use args_to_audioinfo to parse channels 2021-04-19 16:49:25 +02:00
Wim Taymans
649d21ac02 pipewire-pulse: improve channels and channel_map parsing
If we have channels and channelmap, make sure they match.
If we have only channel_map, use this to derive channels instead of
taking the default number of channels and then ending up with a
mismatch.
If we have only channels, use this to generate a channelmap from
predefined maps or just unknown channels instead of taking the default
channel map.
If neither channels or channelmap is defined, use the defaults.
2021-04-19 16:41:14 +02:00
Wim Taymans
66e37f6bb7 pw-cli: free properties in create_ functions 2021-04-19 16:37:05 +02:00
Wim Taymans
50bae0a209 pipewire: free i18n domain in deinit() 2021-04-19 16:34:49 +02:00
Wim Taymans
a9b8aa27c1 media-session: improve bluetooth icon name
Move the icon we get from bluez to a separate property, it is not
a good icon to show.
Copy form factor from device to node properties.
Set device.bus in the device properties and copy it to the node
properties.
Use form factor and bus to make a nice icon-name for the node and
device.

Fixes #1064
2021-04-19 13:21:32 +02:00
Wim Taymans
f64b62c3c4 media-session: improve alsa icon name 2021-04-19 12:32:04 +02:00
Wim Taymans
69666f937d pipewire: fix ngettext method name 2021-04-19 11:31:58 +02:00
Wim Taymans
18c4af9add libcamera: fix compilation
Fixes #1068
2021-04-18 20:34:24 +02:00
Nils Tonnätt
b48d1facf4 Add server_libs variable to jack pkgconf file 2021-04-18 18:31:32 +00:00
Nils Tonnätt
01951fd278 Generate JACK pkgconfig file 2021-04-18 18:31:32 +00:00
Nils Tonnätt
bd6d72be8f Install jack headers 2021-04-18 18:31:32 +00:00
Nils Tonnätt
228bc444cf Add feature option for installing jack development files 2021-04-18 18:31:32 +00:00
Ivan
c9eb3e3b61 po: Update Ukrainian translation 2021-04-18 18:29:49 +00:00
Ivan
45d1dfe303 po: Update Russian translation 2021-04-18 18:29:19 +00:00
Pauli Virtanen
f85681f135 po: update Finnish translation 2021-04-18 20:53:18 +03:00
Huang-Huang Bao
acce4f4c16
po: update simplified Chinese translation 2021-04-18 16:58:20 +08:00
Huang-Huang Bao
2ac065b278
po: update po files
Regenerate pipewire.pot & po files with 'meson compile pipewire-pot' & 'meson compile pipewire-update-po'.
2021-04-18 16:57:24 +08:00
Huang-Huang Bao
98d1a3cb16
bluez5: improve bluetooth profile descriptions, make them more translatable 2021-04-18 16:53:45 +08:00
Nils Tonnätt
f47a7a8ea3 Rearrange libudev dependency
Make libudev dependency required if v4l2 feature option is set to enabled or
auto, or if alsa dependency is found or enabled through pipewire-alsa or alsa.
2021-04-18 07:58:49 +00:00
Yuri Chornoivan
e642b7b6e7 Update Ukrainian translation 2021-04-17 18:46:51 +00:00
Hugo Carvalho
c817ef592d Update Portuguese translation 2021-04-17 17:47:00 +00:00
Wim Taymans
f95ecf95ba spa: don't overrun the input array
Read one byte less than the size of the buffer so that we still have
room in the buffer to append the 0 byte.
2021-04-17 19:43:55 +02:00
Piotr Drąg
d2d01b43d3 Update Polish translation 2021-04-17 13:24:57 +00:00
Piotr Drąg
096cf40735 po: add false positives to POTFILES.skip 2021-04-17 13:22:15 +00:00
Pauli Virtanen
b5f75c3ec6 pipewire: add missing header for setlocale 2021-04-17 13:19:14 +00:00
Huang-Huang Bao
edee633f96
bluez5: add property to enable hardware volume control 2021-04-17 19:35:46 +08:00
Huang-Huang Bao
387f7e327f
bluez5: add support for HSP/HFP hardware volume control
Only native backend is fulfilled.
2021-04-17 19:07:35 +08:00
Huang-Huang Bao
80f6ddf526
bluez5: add hardware volume support
Add necessary apis to bluez transport.
Add A2DP(AVRCP) absolute volume support. Source volume can only update to adapter node but not from due to AG nodes don't have route.
Since A2DP/HSP/HFP volume is already percentage itself, it has been mapped to pulseaudio volume then converting to linear volume.
2021-04-17 19:07:35 +08:00
Wim Taymans
f27ad659f8 spa: add property to force VM
Also add PIPEWIRE_VM to force a VM type.
2021-04-16 16:50:34 +02:00
Wim Taymans
ce828af9e1 spa: add cpu method to get the VM type
Make a method to query the VM we are running on.
2021-04-16 16:50:34 +02:00