switch-on-port-available: Switch to headphones on unknown availability
authorArun Raghavan <arun@asymptotic.io>
Wed, 11 Nov 2020 02:04:11 +0000 (21:04 -0500)
committerArun Raghavan <arun@asymptotic.io>
Sun, 15 Nov 2020 09:00:25 +0000 (04:00 -0500)
commit323195e305ce3bd0f183fc66a301b8ad6120e17f
tree351d0b6afe3dab9ae38eadb8ac826f7a5d94f592
parente70d34ae1882544a57d61ccbd690cf46ce090d0c
switch-on-port-available: Switch to headphones on unknown availability

Since not all users will have environments that asks what they plugged
in when their hardware supports TRRS inputs but don't have impedance
sensing, let's emulate our previous default behaviour of enabling the
headphone port at least.

This can likely be improved so users can configure the module to select
for the device they are most likely to plug in (so an option to enable
just the microphone, or headphones+headset-mic ports).

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1028
src/modules/module-switch-on-port-available.c