I have an Acer 5738G with Ubuntu 12.04, I modified the configurations to have 5.1 sound. It works, but my problem is that only my laptop speakers are detected as speakers in sound settings, when I plug in my system audio jack, Ubuntu detects headphones and ones that only have 2.0 sound. 
So how can I make Ubuntu detect my system jack as speakers?