No Sound from Front Headphone Ports

Solution 1:

I tried to reset alsactl using this command and it worked. There's no need to reinstall anything.

sudo alsactl restore

Note: If you see Device or resource busy, login to a tty(Ctrl+Alt+F6 or Ctrl+Alt+F7) and run the command at there.

Edit:

It seems that I mistakenly assumed that the sound was coming from my headphone. My headphone still didn't work.

This time I tried this:

sudo apt install alsa-tools-gui
hdajackretask

In the new window, select the correct codec at the top. Click "show unconnected pins. Click "override" on each unconnected pins and choose "Headphone" for every pins that have this choice(don't change connected pins). Click "Install boot override" and then reboot. Now it worked.

Solution 2:

This worked-out for me.
In the ‘Terminal’ write alsamixer

In 'AlsaMixer' select Headphone using the side-arrows keys in Keyboard.

Now press m in Keyboard (mouse dose not work here) to Unmute the Headphone. ( When the Headphone is mute you can see in the column it shows MM, and after you unmute the Headphone, it will show OO) Press up-down arrow keys to control sound in your Headphone. Now to save the configuration run this command:
sudo alsactl store
So the next time you open your pc, it will boot-up with that config.