bluez: input = source, output = sink

This commit is contained in:
Wim Taymans 2021-02-12 16:10:58 +01:00
parent 0855b1bb4b
commit 2a83811297
3 changed files with 6 additions and 6 deletions

View file

@ -72,12 +72,12 @@ rules = [
{ {
matches = [ matches = [
{ {
# Matches all sinks. These are regular expressions # Matches all sources. These are regular expressions
# so "." matches one character and ".*" matches many. # so "." matches one character and ".*" matches many.
node.name = "~alsa_input.*" node.name = "~alsa_input.*"
} }
{ {
# Matches all sources. # Matches all sinks.
node.name = "~alsa_output.*" node.name = "~alsa_output.*"
} }
] ]

View file

@ -41,11 +41,11 @@ rules = [
{ {
matches = [ matches = [
{ {
# Matches all sinks. # Matches all sources.
node.name = "~bluez_input.*" node.name = "~bluez_input.*"
} }
{ {
# Matches all sources. # Matches all sinks.
node.name = "~bluez_output.*" node.name = "~bluez_output.*"
} }
] ]

View file

@ -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); str = pw_properties_get(device->props, SPA_KEY_DEVICE_NAME);
if (strstr(info->factory_name, "sink") != NULL) if (strstr(info->factory_name, "sink") != NULL)
prefix = "bluez_input";
else if (strstr(info->factory_name, "source") != NULL)
prefix = "bluez_output"; prefix = "bluez_output";
else if (strstr(info->factory_name, "source") != NULL)
prefix = "bluez_input";
else else
prefix = info->factory_name; prefix = info->factory_name;