Mac mini (M1, 2020) running 12.1 with the same issue. I notice now that this always happens after I use Airplay to send music to an Onkyo receiver. The audio devices go missing. I only notice this because I fire up Logic to make some music and then it tells me that it has no devices. Very frustating as these M1's x15 of are used in a music production studio. Thank you for the suggestion of sudo killall coreaudiod as this is much better than restarting and a much better solution than Apple supports suggestion as to reset every single M1 back to defaults and reinstall the OS 😔
Stats for nerds and developers concerned with this problem:
Model Name: Mac mini
Model Identifier: Macmini9,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
System Firmware Version: 7429.61.2
OS Loader Version: 7429.61.2
Dell USB Entry Keyboard:
Product ID: 0x2107
Vendor ID: 0x413c (Dell Inc.)
Version: 1.15
Speed: Up to 1.5 Mb/s
Manufacturer: Dell
Location ID: 0x00114300 / 10
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
Miscellaneous Device:
Product ID: 0x0825
Vendor ID: 0x046d (Logitech Inc.)
Version: 0.12
Serial Number: 2CD6DD90
Speed: Up to 480 Mb/s
Location ID: 0x00114200 / 9
Current Available (mA): 500
Current Required (mA): 500
Extra Operating Current (mA): 0
AKM320:
Product ID: 0x3c01
Vendor ID: 0x1acc
Version: 0.13
Serial Number: MIDIPLUS-D7-3C01-011DAC01
Speed: Up to 12 Mb/s
Manufacturer: MIDIPLUS
Location ID: 0x00112000 / 6
Current Available (mA): 500
Current Required (mA): 40
Extra Operating Current (mA): 0
USB-C Digital AV Multiport Adapter:
Product ID: 0x1463
Vendor ID: 0x05ac (Apple Inc.)
Version: 42.06
Serial Number: DLC137301YMKD56AL
Speed: Up to 12 Mb/s
Manufacturer: Apple Inc
Location ID: 0x00120000 / 11
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
Devices:
LG HDR 4K:
Manufacturer: GSM
Output Channels: 2
Current SampleRate: 48000
Transport: HDMI
Output Source: Default
LG HDR 4K:
Manufacturer: GSM
Output Channels: 2
Current SampleRate: 48000
Transport: HDMI
Output Source: Default
Unknown USB Audio Device:
Default Input Device: Yes
Input Channels: 1
Manufacturer: Unknown Manufacturer
Current SampleRate: 48000
Transport: USB
Input Source: Default
External Headphones:
Default Output Device: Yes
Default System Output Device: Yes
Manufacturer: Apple Inc.
Output Channels: 2
Current SampleRate: 48000
Transport: Built-in
Output Source: External Headphones
Mac mini Speakers:
Manufacturer: Apple Inc.
Output Channels: 2
Current SampleRate: 48000
Transport: Built-in
Output Source: Mac mini Speakers