Blacklisted module does not work (goal: change driver)

As I can’t find how to make my microphone working, following Speakers, microphone, camera not detected on new Dell XPS-9320 - Support - Manjaro Linux Forum I realized that my sound card accepts multiple drivers

$ inxi -Fazy
... 
Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell 
  driver: intel-ipu6 alternate: intel_ipu6,intel_ipu6_psys,intel_ipu6_isys 
  bus-ID: 00:05.0 chip-ID: 8086:465d class-ID: 0480 
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell 
  driver: sof-audio-pci-intel-tgl 
  alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3 
  chip-ID: 8086:51c8 class-ID: 0401 
  Sound Server-1: ALSA v: k6.1.80 running: yes 
  Sound Server-2: PipeWire v: 1.0.1 running: yes 
...

and someone reported success with the snd_hda_intel module. So I tried to put:

  boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];
  boot.initrd.kernelModules = [];
  boot.kernelModules = [ "snd_hda_intel" "kvm-intel" ];
  
  boot.blacklistedKernelModules = [ "psmouse" "sof-audio-pci-intel-tgl"  "sof_audio_pci_intel_tgl" ]; # used in nixos-hardware for similar devices inxi -Fazy

  boot.extraModulePackages = [];

Unfortunately, after a reboot sof-audio-pci-intel-tgl is still loaded. Why isn’t my blacklist applied? How can I force the other driver?

Here is my dmesg:

$  dmesg | egrep "(snd|audio)" -C 4
[    8.864690] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    8.877721] ACPI: bus type drm_connector registered
[    8.884362] systemd[1]: Finished Load Kernel Module configfs.
[    8.884788] systemd[1]: Started Journal Service.
[    8.893686] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    8.893760] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    8.977228] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    8.982554] tun: Universal TUN/TAP device driver, 1.6
[    8.986893] loop: module loaded
[    8.990861] mc: Linux media interface: v0.10
--
[    9.506039] Bluetooth: hci0: Firmware Version: 60-48.23
[    9.507217] intel-lpss 0000:00:15.1: enabling device (0000 -> 0002)
[    9.507428] intel_tcc_cooling: Programmable TCC Offset detected
[    9.509011] idma64 idma64.1: Found Intel integrated DMA 64-bit
[    9.515358] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    9.515437] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    9.515449] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    9.515697] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    9.515950] intel vsc not ready
[    9.533353] intel vsc not ready
[    9.554166] intel vsc not ready
[    9.558325] intel vsc not ready
--
[   11.307725] NET: Registered PF_ALG protocol family
[   11.423827] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[   11.426562] ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[   11.427507] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input15
[   11.427678] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   11.428373] intel vsc not ready
[   11.429065] intel vsc not ready
[   11.436279] fbcon: i915drmfb (fb0) is primary device
[   11.453534] Console: switching to colour frame buffer device 240x75
[   11.473326] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[   11.492441] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[   11.502944] intel vsc not ready
[   11.503452] intel vsc not ready
[   11.508108] intel vsc not ready
[   11.509219] intel vsc not ready
[   11.509897] intel vsc not ready
[   11.512820] intel vsc not ready
[   11.513198] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[   11.530254] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   11.530258] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   11.530264] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   11.645027] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   11.645031] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   11.652647] rt1316-sdca sdw:1:025d:1316:01: Bus clash detected before INT mask is enabled
[   11.652771] rt1316-sdca sdw:2:025d:1316:01: Bus clash detected before INT mask is enabled
[   11.653027] rt715-sdca sdw:0:025d:0714:01: Bus clash detected before INT mask is enabled
[   11.677536] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   11.677633] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
[   11.692650] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[   11.711904] input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input16
[   11.711950] input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input17

lsmod:


[leo@bestos:~]$ lsmod
Module                  Size  Used by
ccm                    20480  6
qrtr                   49152  4
rfcomm                 94208  16
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                90112  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_ctl_led            24576  0
snd_soc_sof_sdw        65536  9
snd_soc_intel_hda_dsp_common    20480  1 snd_soc_sof_sdw
snd_sof_probes         24576  0
snd_soc_intel_sof_maxim_common    20480  1 snd_soc_sof_sdw
snd_hda_codec_hdmi     81920  1
snd_soc_rt715_sdca     40960  1
snd_soc_rt1316_sdw     28672  2
regmap_sdw_mbq         16384  1 snd_soc_rt715_sdca
regmap_sdw             16384  2 snd_soc_rt715_sdca,snd_soc_rt1316_sdw
cmac                   16384  3
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 32768  6 algif_hash,algif_skcipher
af_packet              57344  6
bnep                   24576  2
hid_sensor_custom_intel_hinge    16384  0
hid_sensor_als         20480  0
hid_sensor_trigger     20480  4 hid_sensor_custom_intel_hinge,hid_sensor_als
industrialio_triggered_buffer    16384  1 hid_sensor_trigger
kfifo_buf              16384  1 industrialio_triggered_buffer
hid_sensor_iio_common    20480  3 hid_sensor_trigger,hid_sensor_custom_intel_hinge,hid_sensor_als
industrialio          110592  5 industrialio_triggered_buffer,hid_sensor_trigger,hid_sensor_custom_intel_hinge,kfifo_buf,hid_sensor_als
hid_sensor_custom      28672  0
msr                    16384  0
hid_sensor_hub         24576  5 hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_custom_intel_hinge,hid_sensor_als,hid_sensor_custom
intel_ishtp_hid        28672  0
joydev                 28672  0
mousedev               24576  0
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   24576  1
fat                    90112  1 vfat
hid_multitouch         32768  0
spi_pxa2xx_platform    36864  0
hid_generic            16384  0
dw_dmac                16384  0
dw_dmac_core           36864  1 dw_dmac
8250_dw                24576  0
iwlmvm                442368  0
i915                 3047424  18
intel_ipu6_isys       135168  0
snd_soc_dmic           16384  0
snd_sof_pci_intel_tgl    16384  10
mac80211             1093632  1 iwlmvm
snd_sof_intel_hda_common   188416  1 snd_sof_pci_intel_tgl
intel_tcc_cooling      16384  0
snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common
soundwire_intel        49152  4 snd_sof_intel_hda_common
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      36864  1 soundwire_intel
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
snd_sof_pci            24576  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_sof               270336  3 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes
videobuf2_dma_contig    20480  1 intel_ipu6_isys
videobuf2_memops       20480  1 videobuf2_dma_contig
coretemp               20480  0
videobuf2_v4l2         36864  1 intel_ipu6_isys
drm_buddy              20480  1 i915
crc32_pclmul           16384  0
polyval_clmulni        16384  0
ttm                    90112  1 i915
videobuf2_common       65536  4 videobuf2_dma_contig,videobuf2_v4l2,intel_ipu6_isys,videobuf2_memops
polyval_generic        16384  1 polyval_clmulni
gf128mul               16384  1 polyval_generic
snd_sof_utils          20480  1 snd_sof
ghash_clmulni_intel    16384  0
sha512_ssse3           49152  0
sha512_generic         16384  1 sha512_ssse3
sha256_ssse3           36864  0
sha1_ssse3             32768  0
snd_hda_ext_core       36864  2 snd_sof_intel_hda_common,snd_soc_hdac_hda
cmdlinepart            16384  0
libarc4                16384  1 mac80211
aesni_intel           393216  8
drm_display_helper    172032  1 i915
spi_nor               114688  0
btusb                  69632  0
dell_laptop            32768  0
intel_ipu6_psys        98304  0
snd_soc_acpi_intel_match    77824  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
crypto_simd            16384  1 aesni_intel
dell_wmi               20480  0
ledtrig_audio          16384  2 snd_ctl_led,dell_laptop
ext4                  958464  1
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
ov01a10                28672  1
mtd                    86016  3 spi_nor,cmdlinepart
btrtl                  28672  1 btusb
cec                    61440  1 i915
dell_smbios            32768  2 dell_wmi,dell_laptop
iTCO_wdt               16384  0
soundwire_bus          98304  8 snd_soc_sof_sdw,snd_soc_rt715_sdca,regmap_sdw,snd_soc_rt1316_sdw,regmap_sdw_mbq,soundwire_intel,soundwire_generic_allocation,soundwire_cadence
rapl                   16384  0
dcdbas                 20480  1 dell_smbios
btbcm                  24576  1 btusb
intel_pmc_bxt          16384  1 iTCO_wdt
mei_csi                16384  0
drm_kms_helper        192512  2 drm_display_helper,i915
btintel                45056  1 btusb
dell_wmi_sysman        53248  0
mbcache                16384  1 ext4
mei_hdcp               24576  0
mei_pxp                20480  0
firmware_attributes_class    16384  1 dell_wmi_sysman
spi_ljca               20480  0
watchdog               32768  1 iTCO_wdt
btmtk                  16384  1 btusb
processor_thermal_device_pci    16384  0
intel_cstate           20480  0
iwlwifi               462848  1 iwlmvm
gpio_ljca              20480  2
i2c_ljca               20480  0
jbd2                  163840  1 ext4
intel_rapl_msr         20480  0
intel_gtt              24576  1 i915
dell_wmi_descriptor    20480  2 dell_wmi,dell_smbios
wmi_bmof               16384  0
mei_ace                16384  0
processor_thermal_device    20480  1 processor_thermal_device_pci
snd_soc_core          352256  10 snd_soc_sof_sdw,snd_soc_rt715_sdca,snd_soc_rt1316_sdw,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_intel_sof_maxim_common,snd_sof_probes,snd_soc_dmic
intel_uncore          217088  0
processor_thermal_rfim    16384  1 processor_thermal_device
agpgart                45056  2 intel_gtt,ttm
intel_ish_ipc          28672  0
i2c_hid_acpi           16384  0
bluetooth             913408  44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
intel_ishtp            61440  2 intel_ishtp_hid,intel_ish_ipc
snd_compress           28672  2 snd_soc_core,snd_sof_probes
i2c_hid                32768  1 i2c_hid_acpi
intel_vsc              16384  3 mei_ace,mei_csi,ov01a10
processor_thermal_mbox    16384  2 processor_thermal_rfim,processor_thermal_device
i2c_algo_bit           16384  1 i915
tpm_crb                24576  0
ac97_bus               16384  1 snd_soc_core
video                  65536  3 dell_wmi,dell_laptop,i915
spi_intel_pci          16384  0
ucsi_acpi              16384  0
ecdh_generic           16384  2 bluetooth
intel_lpss_pci         28672  2
cfg80211             1130496  3 iwlmvm,iwlwifi,mac80211
intel_ipu6            106496  2 intel_ipu6_isys,intel_ipu6_psys
mei_vsc                45056  2
spi_intel              28672  1 spi_intel_pci
typec_ucsi             53248  1 ucsi_acpi
intel_skl_int3472_tps68470    20480  0
igen6_edac             24576  0
i2c_i801               36864  0
mei_me                 53248  2
tiny_power_button      16384  0
ecc                    40960  1 ecdh_generic
intel_lpss             16384  1 intel_lpss_pci
processor_thermal_rapl    20480  1 processor_thermal_device
crc16                  16384  2 bluetooth,ext4
fb_sys_fops            16384  1 drm_kms_helper
v4l2_fwnode            32768  2 ov01a10,intel_ipu6_isys
typec                  86016  1 typec_ucsi
ljca                   32768  3 gpio_ljca,i2c_ljca,spi_ljca
idma64                 20480  0
snd_pcm_dmaengine      16384  1 snd_soc_core
syscopyarea            16384  1 drm_kms_helper
i2c_smbus              20480  1 i2c_i801
tps68470_regulator     16384  0
intel_rapl_common      28672  2 intel_rapl_msr,processor_thermal_rapl
tpm_tis                16384  0
libaes                 16384  2 bluetooth,aesni_intel
8250_pci               65536  0
virt_dma               20480  1 idma64
sysfillrect            16384  1 drm_kms_helper
int3403_thermal        20480  0
clk_tps68470           16384  0
rfkill                 28672  9 iwlmvm,bluetooth,dell_laptop,cfg80211
edac_core              69632  1 igen6_edac
sysimgblt              16384  1 drm_kms_helper
roles                  16384  1 typec_ucsi
tpm_tis_core           32768  1 tpm_tis
battery                28672  0
button                 24576  0
hid                   155648  5 i2c_hid,hid_multitouch,hid_sensor_hub,intel_ishtp_hid,hid_generic
mei                   159744  10 mei_ace,mei_csi,mei_hdcp,mei_pxp,mei_vsc,mei_me
v4l2_async             28672  3 v4l2_fwnode,ov01a10,intel_ipu6_isys
int340x_thermal_zone    20480  2 int3403_thermal,processor_thermal_device
wmi                    36864  6 dell_wmi_sysman,video,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
int3400_thermal        20480  0
intel_pmc_core         53248  0
intel_skl_int3472_discrete    16384  0
intel_hid              28672  0
pinctrl_tigerlake      32768  3
acpi_thermal_rel       16384  1 int3400_thermal
sparse_keymap          16384  2 intel_hid,dell_wmi
acpi_tad               20480  0
acpi_pad               28672  0
evdev                  28672  15
ac                     20480  0
input_leds             16384  0
led_class              20480  3 input_leds,iwlmvm,dell_laptop
ip6_tables             36864  2
mac_hid                16384  0
serio_raw              20480  0
xt_conntrack           16384  2
nf_conntrack          172032  1 xt_conntrack
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
ip6t_rpfilter          16384  1
ipt_rpfilter           16384  1
xt_pkttype             16384  2
xt_LOG                 20480  2
nf_log_syslog          24576  2
xt_tcpudp              20480  0
nft_compat             20480  11
nf_tables             303104  113 nft_compat
libcrc32c              16384  2 nf_conntrack,nf_tables
crc32c_generic         16384  0
nfnetlink              20480  2 nft_compat,nf_tables
sch_fq_codel           20480  1
ctr                    16384  2
v4l2loopback           57344  1
videodev              282624  7 v4l2_async,videobuf2_v4l2,ov01a10,v4l2loopback,intel_ipu6_isys,videobuf2_common
mc                     73728  6 v4l2_async,videodev,videobuf2_v4l2,ov01a10,intel_ipu6_isys,videobuf2_common
loop                   32768  0
cpufreq_powersave      20480  0
tun                    61440  0
tap                    28672  0
macvlan                28672  0
bridge                311296  0
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
kvm_intel             380928  0
kvm                  1118208  1 kvm_intel
irqbypass              16384  1 kvm
snd_hda_intel          57344  0
snd_intel_dspcfg       36864  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         176128  5 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          118784  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               155648  18 snd_soc_rt715_sdca,snd_hda_codec_hdmi,snd_soc_rt1316_sdw,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
drm                   581632  13 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
snd                   118784  28 snd_ctl_led,snd_soc_sof_sdw,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore              16384  2 snd_ctl_led,snd
fuse                  155648  5
deflate                16384  1
backlight              24576  5 video,drm_display_helper,dell_laptop,i915,drm
configfs               57344  1
efi_pstore             16384  0
efivarfs               24576  1
tpm                    94208  3 tpm_tis,tpm_crb,tpm_tis_core
rng_core               20480  1 tpm
dmi_sysfs              20480  0
ip_tables              36864  1
x_tables               53248  9 xt_conntrack,ip6t_rpfilter,nft_compat,xt_LOG,xt_tcpudp,ip6_tables,ipt_rpfilter,xt_pkttype,ip_tables
autofs4                53248  0
xhci_pci               24576  0
xhci_pci_renesas       20480  1 xhci_pci
firmware_class         49152  17 btrtl,snd_hda_intel,intel_ipu6,xhci_pci_renesas,btmtk,snd_sof,drm_display_helper,mei_vsc,intel_ipu6_isys,btintel,btbcm,iwlwifi,btusb,i915,intel_ipu6_psys,cfg80211,drm
xhci_hcd              315392  1 xhci_pci
nvme                   53248  3
nvme_core             151552  4 nvme
atkbd                  36864  0
usbcore               339968  4 xhci_hcd,ljca,btusb,xhci_pci
libps2                 20480  1 atkbd
thunderbolt           376832  0
vivaldi_fmap           16384  1 atkbd
t10_pi                 16384  1 nvme_core
crc64_rocksoft         20480  1 t10_pi
crc64                  20480  1 crc64_rocksoft
crc_t10dif             20480  1 t10_pi
crct10dif_generic      16384  0
crc32c_intel           24576  3
crct10dif_pclmul       16384  1
usb_common             16384  2 xhci_hcd,usbcore
crct10dif_common       16384  3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
i8042                  40960  1 dell_laptop
rtc_cmos               28672  1
serio                  28672  5 serio_raw,atkbd,i8042
dm_mod                155648  0
dax                    45056  1 dm_mod
zfs                  5697536  9
spl                   126976  1 zfs