card: handle sticky profile flag
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Tue, 15 Dec 2020 21:35:05 +0000 (00:35 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Thu, 10 Jun 2021 10:30:58 +0000 (10:30 +0000)
commite576bd924f95f0307572766195be2c1db2ab0ca9
tree08f8c5b1e2715dd12a33f0d3c4e14386637ea34a
parent79cb1369fc4d22966cb65253e9da2ccda2f25b45
card: handle sticky profile flag

New card database entry version 5 for card profile is sticky flag.
New messaging API handlers set-profile-sticky and get-profile-sticky.

When card profile is sticky, always restore it even if it is unavailable,
and prevent switching from it when ports become unavailable.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/568>
doc/messaging_api.txt
src/modules/module-card-restore.c
src/modules/module-switch-on-port-available.c
src/pulsecore/card.c
src/pulsecore/card.h