bluez5: backend-hsphfpd: Add mSBC support

mSBC can be enabled by passing "bluez5.msbc-support=true" parameter to
pipewire-media-session.
mSBC is automatically selected if remote device supports it.
This commit is contained in:
Frédéric Danis 2020-08-18 17:57:09 +02:00
parent 7d28b51713
commit 6308c5d806
4 changed files with 110 additions and 23 deletions

View file

@ -447,7 +447,7 @@ int sm_bluez5_monitor_start(struct sm_media_session *session)
void *iface;
struct impl *impl;
handle = pw_context_load_spa_handle(context, SPA_NAME_API_BLUEZ5_ENUM_DBUS, NULL);
handle = pw_context_load_spa_handle(context, SPA_NAME_API_BLUEZ5_ENUM_DBUS, &session->props->dict);
if (handle == NULL) {
res = -errno;
pw_log_error("can't load %s: %m", SPA_NAME_API_BLUEZ5_ENUM_DBUS);