1 Copper

Headphones plugged in but playing through speakers

I have a Dell Inspiron N5050 and for some reason the audio stopped working properly. When I plug in headphones it should only play through headphones but instead it plays through BOTH headphones and speakers. How can I turn off the speaker so it just plays through headphones when headphones are plugged in?