mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
acp: when we have a device with no port, go to the next device
Fixes an issue where a device have no ports and then it would stop enumerating the ports of the other devices.
This commit is contained in:
parent
67d10ad3c7
commit
9fb1b02352
1 changed files with 2 additions and 4 deletions
|
|
@ -481,14 +481,12 @@ static int impl_enum_params(void *object, int seq,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
dev = card->devices[result.index];
|
dev = card->devices[result.index];
|
||||||
if (SPA_FLAG_IS_SET(dev->flags, ACP_DEVICE_ACTIVE))
|
if (SPA_FLAG_IS_SET(dev->flags, ACP_DEVICE_ACTIVE) &&
|
||||||
|
(p = find_port_for_device(card, dev)) != NULL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
result.index++;
|
result.index++;
|
||||||
}
|
}
|
||||||
p = find_port_for_device(card, dev);
|
|
||||||
if (p == NULL)
|
|
||||||
return 0;
|
|
||||||
result.next = result.index + 1;
|
result.next = result.index + 1;
|
||||||
param = build_route(&b, id, p, dev, card->active_profile_index);
|
param = build_route(&b, id, p, dev, card->active_profile_index);
|
||||||
if (param == NULL)
|
if (param == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue