pipewire/spa/plugins
Wim Taymans 96cfc9bc1a alsa-ucm: Make one input/output mapping per UCM device
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.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
2023-03-20 16:36:40 +01:00
..
aec treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
alsa alsa-ucm: Make one input/output mapping per UCM device 2023-03-20 16:36:40 +01:00
audioconvert audioconvert: check return value of pod parse 2023-03-16 12:33:08 +01:00
audiomixer treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
audiotestsrc treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
avb treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
bluez5 bluez5: backend-native: fix getsockopt/fcntl error code handling 2023-03-19 21:33:28 +02:00
control treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
ffmpeg treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
jack treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
support Fix node-driver.c build on FreeBSD. 2023-03-15 16:53:41 +00:00
test treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
v4l2 treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
videoconvert treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
videotestsrc treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
volume treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
vulkan treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build Disable alsa plugin on !Linux platforms. 2023-03-15 16:53:41 +00:00