bluez5: mark HFP/HSP streams with media.role=Communication

This commit is contained in:
Pauli Virtanen 2022-07-12 14:14:41 +03:00 committed by Wim Taymans
parent 6e37110efd
commit d6a7db8020
2 changed files with 2 additions and 0 deletions

View file

@ -759,6 +759,7 @@ static void emit_node_info(struct impl *this, bool full)
{ SPA_KEY_MEDIA_CLASS, "Stream/Input/Audio" },
{ "media.name", ((this->transport && this->transport->device->name) ?
this->transport->device->name : "HSP/HFP") },
{ SPA_KEY_MEDIA_ROLE, "Communication" },
};
bool is_ag = this->transport &&
(this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY);

View file

@ -805,6 +805,7 @@ static void emit_node_info(struct impl *this, bool full)
{ SPA_KEY_MEDIA_CLASS, "Stream/Output/Audio" },
{ "media.name", ((this->transport && this->transport->device->name) ?
this->transport->device->name : "HSP/HFP") },
{ SPA_KEY_MEDIA_ROLE, "Communication" },
};
bool is_ag = this->transport && (this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY);
uint64_t old = full ? this->info.change_mask : 0;