pipewire/spa/plugins/bluez5
Pauli Virtanen cd166ac899 bluez5: don't use spa_invoke from data loop to main loop
spa_loop_invoke from data loop to main loop is not OK, as Wireplumber
currently runs its main loop with "pw_loop_enter(); pw_loop_iterate();
pw_loop_leave();" which causes the loop to be entered only when it is
processing an event.

In this case, part of the time the loop impl->thread==0, and calling
spa_loop_invoke() at such time causes the callback to be run from the
current thread, ie. in this case data loop which must not happen here.

Fix this by using eventfd instead, which is safe as the callback always
runs from the main loop.

Eventfd is also slightly more natural here, as multiple events will
group to the same mainloop cycle.
2024-04-13 15:54:22 +03:00
..
a2dp-codec-aac.c bluez5: deprioritize AAC-ELD since it's untested 2024-02-01 08:06:06 +00:00
a2dp-codec-aptx.c bluez5: aptx-ll: produce 7.5ms packets 2024-02-05 19:34:47 +02:00
a2dp-codec-caps.h bluez5: support Google's Opus A2DP vendor codec 2024-02-04 12:58:40 +02:00
a2dp-codec-faststream.c pod-builder: move some code around to help gcc 13 2023-04-20 17:52:27 +02:00
a2dp-codec-lc3plus.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
a2dp-codec-ldac.c pod-builder: move some code around to help gcc 13 2023-04-20 17:52:27 +02:00
a2dp-codec-opus-g.c bluez5: support Google's Opus A2DP vendor codec 2024-02-04 12:58:40 +02:00
a2dp-codec-opus.c bluez5: disambiguate the two Opus codecs 2024-02-04 12:57:31 +02:00
a2dp-codec-sbc.c bluez5: SBC-XQ does not need its own endpoint 2024-02-04 12:57:31 +02:00
backend-hsphfpd.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
backend-native.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
backend-ofono.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
bap-codec-caps.h bluez5: bap: support ChannelAllocation parameter from BlueZ 2024-01-08 10:09:13 +00:00
bap-codec-lc3.c bluez5: bap: use priority from conf table in PAC selection 2024-04-12 18:31:26 +03:00
bluez-hardware.conf bluez5: add quirk for SoundCore mini2 2024-01-14 13:21:34 +02:00
bluez5-dbus.c bluez5: bap: determine SDU interval from codec frame duration 2024-04-01 19:13:01 +03:00
bluez5-device.c spa: bluez: fix whitespaces 2024-02-05 20:01:21 +01:00
bt-latency.h bluez5: iso-io: track and apply corrections to tx latency 2024-04-12 18:50:15 +03:00
codec-loader.c bluez5: support Google's Opus A2DP vendor codec 2024-02-04 12:58:40 +02:00
codec-loader.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
dbus-monitor.c bluez5: fix glib signal disconnect 2023-04-14 20:06:57 +03:00
dbus-monitor.h chore: fix warnings shown by Clang 16 2023-05-09 08:31:56 +00:00
decode-buffer.h bluez5: iso-io: track and apply corrections to tx latency 2024-04-12 18:50:15 +03:00
defs.h bluez5: bap: determine SDU interval from codec frame duration 2024-04-01 19:13:01 +03:00
hci.c spa: bluez: use some more spa_auto* 2023-07-30 13:45:49 +02:00
iso-io.c bluez: initialize variable to avoid warning 2024-04-12 18:14:54 +02:00
iso-io.h bluez5: iso-io: track and apply corrections to tx latency 2024-04-12 18:50:15 +03:00
media-codecs.c bluez5: aptx-ll: produce 7.5ms packets 2024-02-05 19:34:47 +02:00
media-codecs.h bluez5: bap: determine SDU interval from codec frame duration 2024-04-01 19:13:01 +03:00
media-sink.c bluez5: don't use spa_invoke from data loop to main loop 2024-04-13 15:54:22 +03:00
media-source.c bluez5: iso-io: track and apply corrections to tx latency 2024-04-12 18:50:15 +03:00
meson.build bluez5: support Google's Opus A2DP vendor codec 2024-02-04 12:58:40 +02:00
midi-enum.c spa: export log topic enumerations 2024-01-04 10:02:55 +00:00
midi-node.c spa: export log topic enumerations 2024-01-04 10:02:55 +00:00
midi-parser.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
midi-server.c spa: use only static log topics 2024-01-04 10:02:55 +00:00
midi.h spa: bluez: include gio/gunixfdlist.h 2023-02-16 20:55:55 +01:00
modemmanager.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
modemmanager.h spa: bluez: modemmanager: do not use old style declaration 2023-07-03 19:40:31 +02:00
org.bluez.xml bluez5: add GDBus-based object monitor framework 2023-01-24 08:27:56 +00:00
player.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
player.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
plugin.c spa: export log topic enumerations 2024-01-04 10:02:55 +00:00
quirks.c spa: Improve JSON error reporting 2024-03-27 15:42:29 +01:00
rate-control.h bluez5: iso-io: track and apply corrections to tx latency 2024-04-12 18:50:15 +03:00
README-MIDI.md bluez5: fixup BLE MIDI selinux README 2023-01-24 08:27:56 +00:00
README-OPUS-A2DP.md bluez5: clarify OPUS-A2DP spec 2022-09-03 19:08:27 +00:00
README-SBC-XQ.md bluez5: add SBC XQ readme 2021-01-07 09:54:16 +01:00
rtp.h Add bluez5 plugins 2018-01-16 15:19:55 +01:00
sco-io.c bluez5: use nonblocking i/o for SCO 2023-03-18 16:08:36 +02:00
sco-sink.c bluez5: sco-sink: more accurate latency values 2024-01-28 18:00:04 +02:00
sco-source.c bluez5: support api.bluez5.internal flag also for sco 2024-01-26 11:58:30 +00:00
test-midi.c bluez5: a few more -Werror=strict-prototypes fixes 2023-01-24 11:14:27 +02:00
upower.c spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
upower.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00