Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this page for instructions on how to get full permissions. Sorry for the inconvenience.
@angus.ainslie I tested the 3.5mm headphone jack, but no audio came out; and audio was still playing through the speakers. Let me know if this should be reopened with greater testing filed, or if another ticket should be opened.
It's possible to detect the headphone insertion but it needs wm8962 driver work. Before that we need to be able to disable the digital mics, also wm8962 driver work.
@martin.kepplinger I think the digital mics still need to be disabled for the headphone microphone to work. We can detect the headphone being plugged in but we also need to be able to check whether IN3R on the wm8962 is grounded to figure out if there is a mic in the headset. If we can do that detection then we can turn off the digital mics so the analog mic will work.
@sebastian.krzyszkowiak does that still work on byzantium. I think i have an idea about DAPM (now that i went trough the whole thing for the devkit) to poke at that but the above i2c is not enough to enable headset mic for me.
(i'll check ucm2 changes but maybe you can check if it still works for you)
Seems like something changed indeed, I tried it now and it's not enough to make the external mic work on neither Dogwood/amber-phone nor Evergreen/byzantium here as well.
Nevermind - it actually worked on Dogwood/amber-phone, was just super quiet. Works fine (loud and clear) on Evergreen/amber-phone. Doesn't work on Evergreen/byzantium.
I noticed that when the audio level on the microphone gets high (for instance, by firmly tapping the microphone), audio stops and becomes a clicking noise. I have to re-plug the headphones in order to make it work again.
headphone microphone will be available to manually select soon. I'll rename this issue and keep it open because we still need https://source.puri.sm/Librem5/linux-next/-/issues/394 to enable it automatically and the volume seems to be too low right now.
Martin Kepplingerchanged title from 2: Need headphone support to 2: Need headphone and microphone support
changed title from 2: Need headphone support to 2: Need headphone and microphone support
afair the codec detects speakers, and when it does, we added detection of microphone. So when we'd plug in a microphone only - with no speaker - we would not detect anything.
I'm still confused. AFAIK the hardware has no way to support a TS microphone over headphone jack. Theoretically we could support a microphone plugged in via a TRRS <-> TRS+TS splitter, or the microphone being turned on/off via a killswitch on the headphones, but since there's no IRQ line from the codec connected there's no way to do that without polling.