mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-20 01:40:25 -05:00
bluetooth: Delay A2DP Absolute Volume setup until property is available
The Volume property on org.bluez.MediaTransport1 is required to utilize Absolute Volume, but it will only become availabe if the peer device supports the feature. This happens asynchronously somewhere after the transport itself has been acquired, after which the callbacks are attached and software volume is reset. To prevent race conditions availability of the property is also checked on startup through a "Get" call. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/239>
This commit is contained in:
parent
c6b771537e
commit
25426bc029
3 changed files with 99 additions and 1 deletions
|
|
@ -192,6 +192,7 @@ void pa_bluetooth_transport_set_state(pa_bluetooth_transport *t, pa_bluetooth_tr
|
|||
void pa_bluetooth_transport_put(pa_bluetooth_transport *t);
|
||||
void pa_bluetooth_transport_unlink(pa_bluetooth_transport *t);
|
||||
void pa_bluetooth_transport_free(pa_bluetooth_transport *t);
|
||||
void pa_bluetooth_transport_load_a2dp_sink_volume(pa_bluetooth_transport *t);
|
||||
|
||||
bool pa_bluetooth_device_any_transport_connected(const pa_bluetooth_device *d);
|
||||
bool pa_bluetooth_device_switch_codec(pa_bluetooth_device *device, pa_bluetooth_profile_t profile, pa_hashmap *capabilities_hashmap, const pa_a2dp_endpoint_conf *endpoint_conf, void (*codec_switch_cb)(bool, pa_bluetooth_profile_t profile, void *), void *userdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue