mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez: input = source, output = sink
This commit is contained in:
parent
0855b1bb4b
commit
2a83811297
3 changed files with 6 additions and 6 deletions
|
|
@ -72,12 +72,12 @@ rules = [
|
|||
{
|
||||
matches = [
|
||||
{
|
||||
# Matches all sinks. These are regular expressions
|
||||
# Matches all sources. These are regular expressions
|
||||
# so "." matches one character and ".*" matches many.
|
||||
node.name = "~alsa_input.*"
|
||||
}
|
||||
{
|
||||
# Matches all sources.
|
||||
# Matches all sinks.
|
||||
node.name = "~alsa_output.*"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ rules = [
|
|||
{
|
||||
matches = [
|
||||
{
|
||||
# Matches all sinks.
|
||||
# Matches all sources.
|
||||
node.name = "~bluez_input.*"
|
||||
}
|
||||
{
|
||||
# Matches all sources.
|
||||
# Matches all sinks.
|
||||
node.name = "~bluez_output.*"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -169,9 +169,9 @@ static struct node *bluez5_create_node(struct device *device, uint32_t id,
|
|||
str = pw_properties_get(device->props, SPA_KEY_DEVICE_NAME);
|
||||
|
||||
if (strstr(info->factory_name, "sink") != NULL)
|
||||
prefix = "bluez_input";
|
||||
else if (strstr(info->factory_name, "source") != NULL)
|
||||
prefix = "bluez_output";
|
||||
else if (strstr(info->factory_name, "source") != NULL)
|
||||
prefix = "bluez_input";
|
||||
else
|
||||
prefix = info->factory_name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue