pipewire/spa/plugins
Wim Taymans 8b20675ad1 alsa-ucm: Consider devices using the same PCM as incompatible
Although it's a valid UCM configuration to have multiple devices using
the same PlaybackPCM or CapturePCM, it's unclear how PulseAudio should
handle the cases where multiple of these devices are enabled. Some
options I can think of are:

- Merge all devices sharing the same PCM into the same mapping, open
  only one PCM substream for this mapping, and add 'combination ports'
  that enable combinations of the devices. This has been the case until
  recently, although the combination port logic was broken. A problem
  with this is that we can't independently control device volumes. We
  most likely cannot use hardware volumes either.

- Have one mapping for each device in the same profile, and open one PCM
  substream for each mapping. This is the current state, and it fails
  when there are fewer substreams than devices. Otherwise it works, but
  it's still confusing, as sound directed to a device-specific mapping
  might end up playing at multiple devices.

- Make multiple profiles each with combinations of upto-substream-count
  devices, and have one mapping/substream per device. This still causes
  the confusion mentioned above. And it's likely that the substream
  count will almost always be one, where this case degenerates into the
  last one.

- Have one mapping for each device in the same profile, but open only
  one PCM substream. I assume this is possible with software mixing, but
  it is still confusing like the above, and probably less performant.

- Generate multiple profiles each with one of the shared-PCM devices,
  again with one mapping/substream for that one device. The trade-off
  with this is that we can't use multiple of these devices at the same
  time. However, this doesn't have the output device confusion,
  combination port's volume problems, or the substream count limitation.

This patch takes a short-cut to achieve the last option, by considering
shared-PCM devices implicitly conflicting with each other.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
2023-03-20 18:29:51 +01:00
..
aec treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
alsa alsa-ucm: Consider devices using the same PCM as incompatible 2023-03-20 18:29:51 +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