Yeah, i recently spent several hours trying to work out if there was some way of resetting ALSA without restarting the entire box - a program was unable to open plughw:0,0, and was failing to start as a result, but there didn't seem to be any PID associated with that device. i tried things like running `alsactl init`, but that didn't help. Comments i found suggested i'd have to manually unload my entire stack of audio modules and then reload them, but i was hoping there was a much more straightforward way, because:
Code: Select all
$ lsmod | grep snd
snd_hda_codec_intelhdmi 16384 1
snd_hda_codec_hdmi 36864 1 snd_hda_codec_intelhdmi
snd_hda_codec_alc269 94208 1
snd_hda_scodec_component 12288 1 snd_hda_codec_alc269
snd_hda_codec_realtek_lib 32768 1 snd_hda_codec_alc269
snd_hda_codec_generic 69632 2 snd_hda_codec_realtek_lib,snd_hda_codec_alc269
snd_hda_intel 40960 4
snd_soc_avs 176128 0
snd_soc_hda_codec 16384 1 snd_soc_avs
snd_hda_ext_core 24576 2 snd_soc_avs,snd_soc_hda_codec
snd_hda_codec 131072 8 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_intelhdmi
snd_ctl_led 20480 0
snd_hda_core 90112 10 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_intelhdmi
snd_intel_dspcfg 16384 2 snd_soc_avs,snd_hda_intel
snd_soc_core 249856 2 snd_soc_avs,snd_soc_hda_codec
snd_compress 20480 2 snd_soc_avs,snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_pcm 122880 10 snd_soc_avs,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
snd_seq_midi 12288 0
snd_seq_midi_event 12288 1 snd_seq_midi
snd_seq 81920 12 snd_seq_midi,snd_seq_midi_event
snd_rawmidi 40960 1 snd_seq_midi
snd_seq_device 12288 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 36864 2 snd_seq,snd_pcm
snd 98304 24 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_timer,snd_hda_codec_realtek_lib,snd_compress,snd_hda_codec_alc269,snd_soc_core,snd_pcm,snd_rawmidi
soundcore 12288 2 snd_ctl_led,snd