I have a samsung laptop with Realtek sound card. When the headphones are not plugged the sound coming from the speakers and when they are plugged, of course not. Is there a way to programmatically switch between headphones and speakers without unplugging headphone jack?