I am running Lenovo thinkpad with Ubuntu 18.04
and I'm connected to the lenovo Dock which may have affected the native headphone controls. Both headphone and headphone mic would not work.
I tried the top answer by Arpit Phillips:
- Install pavucontrol >> sudo apt-get install pavucontrol
- Run sudo pavucontrol
- Go to the "Input Devices" tab
- Click the lock icon to unlock the channels
and I was able to unmute my headphone there to hear sound, but the mic continued to not work.
Secondly, I tried the answer by User and oddly it worked in getting my mic working again.
- Add this line to your /etc/modprobe.d/alsa-base.conf file: options
snd-hda-intel model=dell-vostro enable=1 index=0
I tested using https://www.onlinemictest.com/