Draft: mute microphone using UCM controls
On the PinePhone, muting the microphone using PulseAudio won't work as the audio is fully routed in hardware (and PA is not that good regarding HW controls support).
The best option we have is to directly call alsa in order to toggle the corresponding HW switch, effectively muting the microphone.
TODO:
-
Unmute when changing input port (for example, the internal mic is muted, and a headset is plugged in; we want to unmute the internal mic first, switch to the headset mic, then mute this one -- although the reverse order would be better) -
Make sure this new code path is only used for the PinePhone (command-line option? config file?)
Edited by Arnaud Ferraris