pulseaudio/src/modules/bluetooth
Igor V. Kovalenko 1a3ffd4cee bluetooth: Fix device->adapter dependency while releasing discovery
Change d7f95170a1 added a dependency on device
adapter pointer being valid while checking if bluetooth profile is supported by
device.

When adapter object is released, each device holding pointer to adapter being
released is notified to reset that to NULL. Since adapter objects are released
first when discovery object is unreferenced, each device will have adapter
pointer reset before the time device objects are released.

Fix observed crash by examining device adapter pointer. If it is NULL report
that device does not support any bluetooth profile instead of looking at UUIDs
supported by adapter.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/646>
2021-11-17 15:30:03 +00:00
..
a2dp-codec-api.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codec-aptx-gst.c bluetooth: aptX: Improve error message for when aptX element is not found 2021-05-19 19:25:08 +05:30
a2dp-codec-gst.c bluetooth/gst: Unify encoder and decoder pipeline setup 2021-02-01 17:23:46 +00:00
a2dp-codec-gst.h bluetooth/gst: Unify encoder and decoder pipeline setup 2021-02-01 17:23:46 +00:00
a2dp-codec-ldac-gst.c bluetooth: ldac: Fix missing check for RTP LDAC payloader element 2021-05-19 18:09:43 +05:30
a2dp-codec-sbc.c bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codec-util.c bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codec-util.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codecs.h bluetooth: Update a2dp-codecs.h from upstream bluez project 2019-04-12 13:56:28 +03:00
backend-native.c bluetooth/backend-native: Replace tab-indents with spaces 2021-11-17 15:25:00 +00:00
backend-ofono.c bluetooth: Only remove cards belonging to the device. 2021-08-25 15:20:57 +00:00
bluez5-util.c bluetooth: Fix device->adapter dependency while releasing discovery 2021-11-17 15:30:03 +00:00
bluez5-util.h bluetooth: Consider adapter UUIDs when evaluating profile support 2021-10-06 15:07:00 +00:00
bt-codec-api.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
bt-codec-cvsd.c bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
bt-codec-msbc.c bluetooth: mSBC: log lost input audio packets at debug level 2021-04-05 15:43:32 +00:00
bt-codec-msbc.h bluetooth: add support for mSBC codec 2021-04-05 15:43:32 +00:00
meson.build build-sys: meson: Require bluez dependency if bluez5 feature is enabled 2021-06-21 10:50:08 +00:00
module-bluetooth-discover.c bluetooth: Remove leftover references to the BlueZ 4/5 split 2018-07-27 11:28:11 +03:00
module-bluetooth-policy.c bluetooth: complete bluetooth profile separation 2021-02-23 06:54:39 +00:00
module-bluez5-device.c bluetooth: Allow bluetooth to use alternative smoother code 2021-11-03 21:13:38 +00:00
module-bluez5-discover.c bluetooth: Add avrcp_absolute_volume module flag for disablement 2021-05-17 14:50:03 +00:00
rtp.h bluetooth: Fix usage of RTP structures in SBC codec 2019-07-24 17:29:45 +03:00