mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
PulseAudio combines UCM devices that have the same PlaybackPCM or
CapturePCM value into a single mapping with multiple ports. It also
creates ports in the same mapping for each valid combination of those
UCM devices.
Since mappings are the things we put in profiles, we can put in a
profile either all devices of a joint mapping or none of them. This
causes some complications with device conflicts. For example, a
different UCM device might be marked as conflicting with some (but not
all) of the devices in a joint mapping. In this case we can do one of
three things:
- Include all devices in one profile, and hope the conflicting device
isn't chosen as the mapping's active port. We shouldn't do this as it
puts conflicting devices in the same profile.
- Make one profile with the joint group, and one with the other device.
This is somewhat acceptable as we have no conflicts, but we sacrifice
some compatible combinations of devices.
- Do not group the devices into the same mapping, and make one profile
for each compatible combination of devices. This appears to be the
best option, one where we can always have the maximum number of
working devices.
This patch chooses the third option and makes one input and/or output
mapping per UCM device, by using UCM device names instead of PCM device
strings in the mapping names.
Link:
|
||
|---|---|---|
| .. | ||
| acp.c | ||
| acp.h | ||
| alsa-mixer.c | ||
| alsa-mixer.h | ||
| alsa-ucm.c | ||
| alsa-ucm.h | ||
| alsa-util.c | ||
| alsa-util.h | ||
| array.h | ||
| card.h | ||
| channelmap.h | ||
| compat.c | ||
| compat.h | ||
| conf-parser.c | ||
| conf-parser.h | ||
| device-port.h | ||
| dynarray.h | ||
| hashmap.h | ||
| idxset.h | ||
| llist.h | ||
| meson.build | ||
| proplist.h | ||
| volume.h | ||