After searching more on internet, I found fix on this page that helped me: http://askubuntu.com/questions/135804/want-sound-only-to-headphones-when-it-plugged-in-and-in-speakers-else
... Add a line to /etc/modprobe.d/alsa-base.conf : options snd-hda-intel model=auto probe_mask=1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/995684 Title: Switching problem between headphone speaker and microphone to laptop built in speakers and front mic To manage notifications about this bug go to: https://bugs.launchpad.net/alsa-driver/+bug/995684/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs