18.04 没有声音 - Intel 声卡 snd_hda_intel 不工作

dav*_*d R 1 hardware nvidia intel soundcard drivers

$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


$ cat /proc/asound/modules

1 snd_hda_intel

$ lspci -v | grep -A7 -i "audio"

00:1f.3 Multimedia audio controller: Intel Corporation Cannon Lake PCH cAVS (rev 10)
    Subsystem: Dell Device 0949
    Flags: bus master, fast devsel, latency 32, IRQ 16
    Memory at a5318000 (64-bit, non-prefetchable) [size=16K]
    Memory at a5000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: snd_soc_skl
    Kernel modules: snd_hda_intel, snd_soc_skl, sof_pci_dev


01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at a3080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
Run Code Online (Sandbox Code Playgroud)

小智 5

您需要在 GRUB 上添加一个选项。

编辑 grub 选项:

sudo nano /etc/default/grub
Run Code Online (Sandbox Code Playgroud)

找到GRUB_CMDLINE_LINUX_DEFAULT并添加snd_hda_intel.dmic_detect=0到它的末尾。它看起来像这样:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 snd_hda_intel.dmic_detect=0"
Run Code Online (Sandbox Code Playgroud)

然后重建 grub 菜单:

sudo grub-mkconfig -o /boot/grub/grub.cfg
Run Code Online (Sandbox Code Playgroud)

重新启动系统后,设备应该可以工作。