mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5-device: Expose HiSyncId and Side information on ASHA node
This commit is contained in:
parent
74fe7728d2
commit
db47c3e442
1 changed files with 9 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ static void emit_node(struct impl *this, struct spa_bt_transport *t,
|
|||
{
|
||||
struct spa_bt_device *device = this->bt_dev;
|
||||
struct spa_device_object_info info;
|
||||
struct spa_dict_item items[11];
|
||||
struct spa_dict_item items[13];
|
||||
uint32_t n_items = 0;
|
||||
char transport[32], str_id[32], object_path[512];
|
||||
bool is_dyn_node = SPA_FLAG_IS_SET(id, DYNAMIC_NODE_ID_FLAG);
|
||||
|
|
@ -696,6 +696,14 @@ static void emit_node(struct impl *this, struct spa_bt_transport *t,
|
|||
items[n_items] = SPA_DICT_ITEM_INIT("object.path", object_path);
|
||||
n_items++;
|
||||
}
|
||||
if (t->media_codec->asha) {
|
||||
char hisyncid[32] = { 0 };
|
||||
spa_scnprintf(hisyncid, sizeof(hisyncid), "%zd", t->hisyncid);
|
||||
items[n_items] = SPA_DICT_ITEM_INIT("api.bluez5.asha.hisyncid", hisyncid);
|
||||
n_items++;
|
||||
items[n_items] = SPA_DICT_ITEM_INIT("api.bluez5.asha.side", t->asha_right_side ? "right" : "left");
|
||||
n_items++;
|
||||
}
|
||||
|
||||
info = SPA_DEVICE_OBJECT_INFO_INIT();
|
||||
info.type = SPA_TYPE_INTERFACE_Node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue