Redirect audio output

Hey guys.

I have a notebook that has three in/out ports. The first one is the headphone output, the second is microphone output and the third I am not quite sure what it is. The point is that recently, my headphone started playing uneven sound volume in the right pod. I tested the headphones in my smart phone and they are fine. From what I read in the internet, the headphone jack is probably compromised.

The first main points of this post is to get advices in what can I do to fix the headphone output. The second intention is to ask if it is possible to configure the other in/out ports to work as headphone jacks.

Thank you !