sound-reload: Remove modules in reverse dependency order.
This commit is contained in:
parent
fd15ed865f
commit
6902fe306a
|
@ -55,17 +55,23 @@ echo autospawn=no >> ~/.pulse/client.conf
|
|||
pulseaudio -k
|
||||
fuser -kv /dev/snd/*
|
||||
modules="
|
||||
thinkpad_acpi
|
||||
snd_hda_codec_conexant
|
||||
snd_hda_codec_analog
|
||||
snd_hda_intel
|
||||
snd_hda_codec_conexant
|
||||
snd_seq_midi
|
||||
|
||||
snd_hda_codec_hdmi
|
||||
snd_usb_audio
|
||||
snd_hda_codec_realtek
|
||||
|
||||
thinkpad_acpi
|
||||
|
||||
snd_hda_codec_analog
|
||||
snd_hda_codec_generic
|
||||
snd_hda_codec
|
||||
snd_hda_core
|
||||
snd_hwdep
|
||||
snd_pcm
|
||||
snd_seq_midi
|
||||
snd_seq_midi_event
|
||||
snd_rawmidi
|
||||
snd_seq
|
||||
|
@ -74,7 +80,7 @@ modules="
|
|||
snd
|
||||
soundcore
|
||||
"
|
||||
sudo parallel --retries=100 -N0 modprobe -r $modules ::: 1
|
||||
sudo parallel -j1 -n1 modprobe -r ::: $modules
|
||||
lsmod|grep snd
|
||||
lspci | grep Audio || echo "!!! No audio hardware found in lspci"
|
||||
sudo parallel -j1 modprobe ::: $modules
|
||||
|
|
Loading…
Reference in a new issue