In many cases, audio switching is automatically set up when you plug in a headphone or a surround system. But if this is not happening, you need to proceed using the manual way. Insert the jack into the default headphones port (usually the green one) then use the application to configure the port. Select headphones and you should hear sound.