Ashok Sidipotu
efb0c5a635
Wireplumber Settings: Port the latest changes from master
...
Port them from Lua config to JSON config.
2023-04-17 07:47:09 -04:00
Ashok Sidipotu
66c63a91a9
monitors: Align nomenclature of the settings and rules
2023-04-17 07:47:09 -04:00
Julian Bouzas
5e6262718a
monitors: use new Settings.get_all() API
2023-04-17 07:47:09 -04:00
Julian Bouzas
a76e780b4b
docs: update new configuration file names
2023-04-17 07:47:09 -04:00
Ashok Sidipotu
4282dff187
wpsettings: switch settings in main.lua.d to JSON
...
- switch stream based lua script and their configs to wpsettings,
remove all the config/lua references
- move last remaining scripts and modules from 90-enable-all.lua to
wireplumber.conf
- delete all files in main.lua.d
2023-04-17 07:44:19 -04:00
Ashok Sidipotu
161c43b71a
lua monitors: switch to wpsetttings
...
- switch alsa.lua, v4l2.lua & libcamera.lua
- remove the config/lua references for these scripts
- fix the wpsettings deps parsing bug.
2023-04-17 07:44:19 -04:00
Wim Taymans
eae8d2d0b5
alsa: boost pro- profiles priority
...
So that they are more likely to become the driver in the graph.
2023-02-16 10:44:48 +00:00
Wim Taymans
f6dc1b3347
alsa-monitor: handle snd_aloop devices better
...
Place Loopback as the device description for snd_aloop devices.
Fixes pipewire#2214
2022-12-13 15:19:06 +01:00
Ashok Sidipotu
e77ad8c0c0
alsa.lua: remove the disabled entities from the names table
...
entities here are the device cards and the device nodes.
sometimes null device objects are reported by monitor, this results in lua
exceptions handle this use case.
Fixes #361
2022-11-08 14:55:40 +00:00
Fabian Vogt
d5029697de
Fix leftover use of module-reserve-device's state property
...
The move to the WpDbus API dropped the "state" property from the plugin,
but left the property enum and use of it in alsa.lua. Remove the enum and
port over the code in alsa.lua.
2022-07-14 13:02:19 +00:00
George Kiagiadakis
c16e637c32
alsa: use "obj_type" as a variable name to avoid shadowing lua's "type" function
...
This causes a crash when running in a VM because the code tries to
execute lua's "type()" and ends up executing the local string variable...
Fixes : #303
2022-07-07 20:58:36 +03:00
George Kiagiadakis
37bd392119
alsa: add mechanism to override node default properties for VMs
...
Fixes #162 , #134
2022-06-28 14:31:17 +03:00
Julian Bouzas
392bd81913
alsa.lua: remove node names from table when parent device is destroyed
...
Fixes #293
2022-06-27 08:52:36 +00:00
Julian Bouzas
46e7c5c144
m-reserve-device: use WpDbus API
2022-06-02 12:34:16 -04:00
Julian Bouzas
c00c5a6675
alsa.lua: fix device name deduplication when reservation is enabled
...
Fixes #241
2022-05-19 07:43:12 -04:00
Pauli Virtanen
6feecab74e
scripts: translate user-visible strings in alsa.lua
2022-04-11 19:20:43 +03:00
Wim Taymans
0747d34e44
alsa: fixup node.nick
...
Some devices (Mostly USB devices) have a generic pcm name (USB Audio)
that is quite useless. Filter this out and fall back to the device nick
in that case.
2022-03-08 11:03:24 +00:00
George Kiagiadakis
b95da3393c
alsa: also try the profile description if the pcm name is empty, for node.nick
2022-03-01 12:11:25 +02:00
George Kiagiadakis
4e5af26382
alsa: use the pcm name to populate the node.nick
...
This avoids using device.nick, which is the card name, on all nodes
of a card. Useful on UCM, where analog, hdmi, etc are all exposed
as nodes on a single profile.
2022-03-01 11:35:55 +02:00
George Kiagiadakis
18bc3d3596
scripts: fallback to empty config table if args were not passed from the config files
...
Fixes #158
2022-01-13 11:10:03 +02:00
mazunki
bbd23fa3e3
added support for disabling nodes and devices through conf
2022-01-12 13:07:05 +00:00
Julian Bouzas
40b16974cf
scripts: monitors: log warning if spa devices were not created successfully
...
Can happen if the user does not have the specific spa pluging installed.
2022-01-12 10:09:56 +00:00
Wim Taymans
efd2458418
alsa: handle the release-requested signal
...
Handle the release-requested signal by destroying the device and
then calling release.
Fixes pipewire/pipewire#1846
2021-11-23 13:17:29 +01:00
Peter Hutterer
9208ea051c
Fix some typos
2021-11-18 12:09:57 +00:00
Julian Bouzas
450a38da50
scripts: handle dbus service restarts if reserve device is enabled
...
This destroys the ALSA monitor when the DBus connection is closed, and
re-creates again the monitor when the Dbus connection is connected, so that
device reservation is restarted.
2021-09-24 08:53:50 -04:00
Ashok Sidipotu
33d4e61b97
alsa-monitor: add check for nill monitor
2021-09-20 10:43:33 +05:30
George Kiagiadakis
47ed9bb527
monitors: sanitize device names like media-session does
2021-06-03 18:58:49 +03:00
Julian Bouzas
b8030e138d
alsa-monitor: activate BOUND feature in JACK device
2021-05-17 15:23:24 -04:00
George Kiagiadakis
fc5aa7db1f
lua: rename Plugin() to Plugin.find()
...
Plugin() is confusing because it's not a constructor, it just finds
an existing instance of a plugin object. All other camel-case
functions are constructors in the current lua API.
2021-05-07 11:53:47 +03:00
George Kiagiadakis
95bb22efe2
monitor-alsa: add api.alsa.card.* properties on nodes
...
Useful for rule matching on nodes where the rules are also matching
properties of the card.
2021-03-26 17:29:25 +02:00
George Kiagiadakis
98151fdb69
monitor-alsa: fix node description on strange embedded devices
...
Ensure that no part of the description string is empty, otherwise fall back
Fix logic with dev and/or subdev being 0
2021-02-18 10:23:07 +02:00
George Kiagiadakis
20c7733640
monitors: sanitize node descriptions too
...
aea79cd79c
2021-02-18 09:02:41 +02:00
George Kiagiadakis
115c9c3e4f
monitors: drop the monitor- prefix from the filenames and s/bluez5/bluez/
2021-02-15 19:55:06 +02:00