When external speakers are plugged in to headphone jack, sound randomly goes back to internal speakers or digital audio setting, then back again
I have an essentially new MacBook Pro with Lion and all updates applied, and am wondering if this is a hardware or software problem. Essentially with something plugged into the headphone jack, things work as they are supposed to for a while, then the sound will switch back to internal speakers, or sometimes 'digital out' (I can watch it change in the system settings), and then often switch back. It doesn't seem to follow any sort of pattern or be related to any specific application that could be open, and happens with different sources of audio (iTunes, streaming from the web), and different external speakers or headphones plugged in.
MacBook Pro, Mac OS X (10.5.7), NA