mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: mark HFP/HSP streams with media.role=Communication
This commit is contained in:
parent
6e37110efd
commit
d6a7db8020
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue