From f51fd1a2780dae0e253f02b11e4b4915424893ba Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Mon, 5 Jun 2023 04:05:38 -0400 Subject: Detect more modules requiring `alsa-firmware` (#1822) --- archinstall/lib/hardware.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/hardware.py') 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 -- cgit v1.2.3-54-g00ecf