mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
bluez5: backend-native: update HFP SDP records
Advertise SWB since we implement it. Update HFP version to 1.9 accordingly.
This commit is contained in:
parent
8d019c5689
commit
c9acdd2f1f
2 changed files with 29 additions and 17 deletions
|
|
@ -2538,6 +2538,9 @@ static int register_profile(struct impl *backend, const char *profile, const cha
|
|||
|
||||
/* We announce wideband speech support anyway */
|
||||
features = SPA_BT_HFP_SDP_AG_FEATURE_WIDEBAND_SPEECH;
|
||||
#ifdef HAVE_LC3
|
||||
features |= SPA_BT_HFP_SDP_AG_FEATURE_SUPER_WIDEBAND_SPEECH;
|
||||
#endif
|
||||
dbus_message_iter_open_container(&it[1], DBUS_TYPE_DICT_ENTRY, NULL, &it[2]);
|
||||
dbus_message_iter_append_basic(&it[2], DBUS_TYPE_STRING, &str);
|
||||
dbus_message_iter_open_container(&it[2], DBUS_TYPE_VARIANT, "q", &it[3]);
|
||||
|
|
@ -2545,9 +2548,9 @@ static int register_profile(struct impl *backend, const char *profile, const cha
|
|||
dbus_message_iter_close_container(&it[2], &it[3]);
|
||||
dbus_message_iter_close_container(&it[1], &it[2]);
|
||||
|
||||
/* HFP version 1.7 */
|
||||
/* HFP version 1.9 */
|
||||
str = "Version";
|
||||
version = 0x0107;
|
||||
version = 0x0109;
|
||||
dbus_message_iter_open_container(&it[1], DBUS_TYPE_DICT_ENTRY, NULL, &it[2]);
|
||||
dbus_message_iter_append_basic(&it[2], DBUS_TYPE_STRING, &str);
|
||||
dbus_message_iter_open_container(&it[2], DBUS_TYPE_VARIANT, "q", &it[3]);
|
||||
|
|
@ -2559,6 +2562,9 @@ static int register_profile(struct impl *backend, const char *profile, const cha
|
|||
|
||||
/* We announce wideband speech support anyway */
|
||||
features = SPA_BT_HFP_SDP_HF_FEATURE_WIDEBAND_SPEECH;
|
||||
#ifdef HAVE_LC3
|
||||
features |= SPA_BT_HFP_SDP_HF_FEATURE_SUPER_WIDEBAND_SPEECH;
|
||||
#endif
|
||||
dbus_message_iter_open_container(&it[1], DBUS_TYPE_DICT_ENTRY, NULL, &it[2]);
|
||||
dbus_message_iter_append_basic(&it[2], DBUS_TYPE_STRING, &str);
|
||||
dbus_message_iter_open_container(&it[2], DBUS_TYPE_VARIANT, "q", &it[3]);
|
||||
|
|
@ -2566,9 +2572,9 @@ static int register_profile(struct impl *backend, const char *profile, const cha
|
|||
dbus_message_iter_close_container(&it[2], &it[3]);
|
||||
dbus_message_iter_close_container(&it[1], &it[2]);
|
||||
|
||||
/* HFP version 1.7 */
|
||||
/* HFP version 1.9 */
|
||||
str = "Version";
|
||||
version = 0x0107;
|
||||
version = 0x0109;
|
||||
dbus_message_iter_open_container(&it[1], DBUS_TYPE_DICT_ENTRY, NULL, &it[2]);
|
||||
dbus_message_iter_append_basic(&it[2], DBUS_TYPE_STRING, &str);
|
||||
dbus_message_iter_open_container(&it[2], DBUS_TYPE_VARIANT, "q", &it[3]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue