On Mon, 2019-12-09 at 11:17 +0000, Bob Ham wrote: > Hi there, > > I'm working on the Librem 5 phone and we need to be able to manage > PulseAudio ports and profiles, mapped from UCM devices and verbs. So > for example we need to switch from a Handset port to a SpeakerPhone port > when the "Speakerphone" button in the dialer is toggled. Ideally we > also need to do more complex things like prohibit notification sounds > playing when a phone call is active. > > Does anyone know of any existing software for managing PulseAudio ports > and profiles? People certainly have written such software, but I'm not aware of anything that would be easy to adopt. People have generally opted for creating a policy module that interfaces with some external policy daemon. In practice they have forked PulseAudio, becaues there's no stable module API, so the modules need to be built together with PulseAudio (or at least PulseAudio needs to be patched to install the internal headers). Nokia used a policy module + policy daemon with the Maemo and Meego phones, and Sailfish OS inherited that (I don't know if they're still using the same system). Intel created the Murphy policy daemon for automotive IVI systems and that too had an associated PulseAudio module. I think I've seen a custom policy module also in Ubuntu (I don't know if it's used outside their phone distro). -- Tanu https://www.patreon.com/tanuk https://liberapay.com/tanuk _______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss