Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-06-05 04:05:38 -0400
committerGitHub <noreply@github.com>2023-06-05 10:05:38 +0200
commitf51fd1a2780dae0e253f02b11e4b4915424893ba (patch)
tree1154e4ef6d09dd752a9ef21eec8982bb2801c13b
parent06eadb31d4f0bca0c8cb95b6a9eb62ddd2d7cff2 (diff)
Detect more modules requiring `alsa-firmware` (#1822)
-rw-r--r--archinstall/lib/hardware.py31
1 files changed, 30 insertions, 1 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index 2b65e07c..bd153a63 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -191,4 +191,33 @@ class SysInfo:
@staticmethod
def requires_alsa_fw() -> bool:
- return 'snd_emu10k1' in _sys_info.loaded_modules
+ modules = (
+ 'snd_asihpi',
+ 'snd_cs46xx',
+ 'snd_darla20',
+ 'snd_darla24',
+ 'snd_echo3g',
+ 'snd_emu10k1',
+ 'snd_gina20',
+ 'snd_gina24',
+ 'snd_hda_codec_ca0132',
+ 'snd_hdsp',
+ 'snd_indigo',
+ 'snd_indigodj',
+ 'snd_indigodjx',
+ 'snd_indigoio',
+ 'snd_indigoiox',
+ 'snd_layla20',
+ 'snd_layla24',
+ 'snd_mia',
+ 'snd_mixart',
+ 'snd_mona',
+ 'snd_pcxhr',
+ 'snd_vx_lib'
+ )
+
+ for loaded_module in _sys_info.loaded_modules:
+ if loaded_module in modules:
+ return True
+
+ return False