MacBook Air doesn't recognize headphone anymore
Restarting the OS X audio subsystem might fix the problem, without the need to do a full reboot. You could try running the following commands in Terminal

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
sudo killall coreaudiod