mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-16 06:59:55 -05:00
On the machines with the ucm used, the different input/output devices often have different pcm stream, so they often belong to different sources and sinks, this is greatly different from the design of all devices connected to a codec (without ucm). For example, on a machine with ucm2 used: the internal dmic is on source#0 the external mic is on the source#1 the internal spk is on sink#0 the external headphone is on sink#1 Users expect that after plugging the external device, it will become the active device automatically. The switch-on-port-available could make it to be the active_port on its own source/sink, but can't make source/sink to be default_source/sink since the sources/sinks belong to the same profile (HiFi usually). If we adjust the source/sink priority according to ucm ports priority, the device_port.c could handle the default_source/sink changing then. Usually we set higher priority for external device than internal device in the ucm. In order to bring the lowest side effect on the source/sink priority, I change the ucm priority to units digit first, then add it to the original priority. Signed-off-by: Hui Wang <hui.wang@canonical.com> |
||
|---|---|---|
| .. | ||
| mixer | ||
| 90-pulseaudio.rules | ||
| alsa-mixer.c | ||
| alsa-mixer.h | ||
| alsa-sink.c | ||
| alsa-sink.h | ||
| alsa-source.c | ||
| alsa-source.h | ||
| alsa-ucm.c | ||
| alsa-ucm.h | ||
| alsa-util.c | ||
| alsa-util.h | ||
| meson.build | ||
| module-alsa-card.c | ||
| module-alsa-sink.c | ||
| module-alsa-source.c | ||