No, it's not a virus.
Your MacBook thinks you're using the digital audio output, plug in and unplug some headphones a few times to see if it resolves itself.
I think there could be a recall or something on this issue, it seems pretty rife to me. Faulty audio jacks perhaps?