iMac Retina 5K, 27-inch 2017 macOS Big Sur v11.5.2 No output sound device and thus won't play any sound.
In the System Preferences>Sound>Output, no device is detected. Not even the internal speakers. When I plugged in a headphone in the jack, still no output device.
When the Mac booted up, there was a sound so hardware-wise, speakers are fine. Only the OS can't detect the hardware.
Playing YouTube video shows max volume but no sound.
Podcast app even refuse to play any episode.
iMac Line (2012 and Later)