Eventually I got to the point of disconnecting the sound system. I unplugged the headphones.
And there was sound. It started working again.
It cut out briefly a few times in the interim. I suspect that there's a relay on the mainboard that's either going bad or the driver for it is getting weak.
Still, for now it works and it's staying on through power cycles, so I'm just gonna leave it alone for now.