mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
bluez: sco: register sco source & sink as streams if the remote end is an AG
if our end is a headset, it needs to link the bluetooth streams directly to alsa
This commit is contained in:
parent
8a4d2ed7ce
commit
8a106c79a0
2 changed files with 17 additions and 15 deletions
|
|
@ -676,15 +676,16 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct spa_dict_item node_info_items[] = {
|
static void emit_node_info(struct impl *this, bool full)
|
||||||
|
{
|
||||||
|
bool is_ag = (this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY);
|
||||||
|
struct spa_dict_item node_info_items[] = {
|
||||||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||||
{ SPA_KEY_MEDIA_CLASS, "Audio/Sink" },
|
{ SPA_KEY_MEDIA_CLASS, is_ag ? "Stream/Input/Audio" : "Audio/Sink" },
|
||||||
{ SPA_KEY_NODE_DRIVER, "true" },
|
{ SPA_KEY_NODE_DRIVER, "true" },
|
||||||
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static void emit_node_info(struct impl *this, bool full)
|
|
||||||
{
|
|
||||||
if (full)
|
if (full)
|
||||||
this->info.change_mask = this->info_all;
|
this->info.change_mask = this->info_all;
|
||||||
if (this->info.change_mask) {
|
if (this->info.change_mask) {
|
||||||
|
|
|
||||||
|
|
@ -685,15 +685,16 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct spa_dict_item node_info_items[] = {
|
static void emit_node_info(struct impl *this, bool full)
|
||||||
|
{
|
||||||
|
bool is_ag = (this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY);
|
||||||
|
struct spa_dict_item node_info_items[] = {
|
||||||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||||
{ SPA_KEY_MEDIA_CLASS, "Audio/Source" },
|
{ SPA_KEY_MEDIA_CLASS, is_ag ? "Stream/Output/Audio" : "Audio/Source" },
|
||||||
{ SPA_KEY_NODE_DRIVER, "true" },
|
{ SPA_KEY_NODE_DRIVER, "true" },
|
||||||
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static void emit_node_info(struct impl *this, bool full)
|
|
||||||
{
|
|
||||||
if (full)
|
if (full)
|
||||||
this->info.change_mask = this->info_all;
|
this->info.change_mask = this->info_all;
|
||||||
if (this->info.change_mask) {
|
if (this->info.change_mask) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue