I have a Xiaomi Mi Air 2018 Laptop with one combined 3.5mm jack at the left side of the keyboard, connected via an ALC255. While audio output with jack detection works fine, alsa doesn't get any mic input. Internal mic and speakers work fine.
I tried a bit around with hdajackretask and found that Pin ID 0x19 is wired to the mic input. I uploaded pictures of my config to my stack overflow question: https://stackoverflow.com/questions/54277467/how-to-contribute-to-alsa-intel...
I know there should be a patch written for sound/pci/hda/patch_realtek.c which should look somewhat like this:
[ALC255_FIXUP_XIAOMI_AIR18] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { { 0x19, 0x01a1913c }, /* combinded audio jack */ },
but I really have no idea what the third and fourth line means and just copied from the Dell fixup. Would be nice if someone could help me to write a proper patch (I have some basic C/C++ knowledge, but no idea about alsa internals).
System Info: Debian Unstable libasound2 1.1.7-2 i5 8250U w/ Realtek ALC255
This is my first attempt to contribute to open source project, so I hope I didn't miss anything important.
Best regards, Stephan Lachnit