From 6fb0c63581b502fb97580a0e7a6693db0c25394e Mon Sep 17 00:00:00 2001 From: turmary Date: Tue, 29 Sep 2020 11:06:23 +0800 Subject: [PATCH] Add: unload codec driver when uninstall --- uninstall.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uninstall.sh b/uninstall.sh index b1292fc..56e5415 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -79,6 +79,11 @@ rm -v /lib/systemd/system/seeed-voicecard.service || true echo -e "\n### Remove dkms" rm -rfv /var/lib/dkms/seeed-voicecard || true +echo -e "\n### Unload codec driver by modprobe -r" +modprobe -r snd_soc_ac108 +modprobe -r snd_soc_wm8960 +modprobe -r snd_soc_seeed_voicecard + echo -e "\n### Remove kernel modules" rm -v /lib/modules/*/kernel/sound/soc/codecs/snd-soc-wm8960.ko || true rm -v /lib/modules/*/kernel/sound/soc/codecs/snd-soc-ac108.ko || true