$ 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
答案1
您需要在 GRUB 上添加一个选项。
要编辑 grub 选项:
sudo nano /etc/default/grub
找到GRUB_CMDLINE_LINUX_DEFAULT
并添加snd_hda_intel.dmic_detect=0
到其末尾。它看起来会像这样:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 snd_hda_intel.dmic_detect=0"
然后重建grub菜单:
sudo grub-mkconfig -o /boot/grub/grub.cfg
重新启动系统后,设备就可以工作了。
答案2
对我来说,解决方案是从这里安装最新的 Sound Open Firmware (SOF) 二进制文件:https://github.com/thesofproject/sof-bin
具体来说:
- 克隆存储库:
git clone https://github.com/thesofproject/sof-bin.git
- 更改目录:
cd sof-bin
- 跟随:https://github.com/thesofproject/sof-bin#install-process-with-installsh(对我来说 v2.2 有效)
sudo mv /lib/firmware/intel/sof* some_backup_location/
sudo mv /usr/local/bin/sof-* some_backup_location/ # optional
sudo ./install.sh v2.2.x/v2.2
- 重启
此后,声音输出和麦克风都可以正常工作(Ubuntu 23.04,联想 X1 Gen8)
注意:请确保 或中未设置snd_hda_intel.dmic_detect=0
或设置。否则声音输出可能有效,但没有麦克风输入。snd_intel_dspcfg.dsp_driver=1
GRUB_CMDLINE_LINUX_DEFAULT
/etc/modprobe.d/alsa-base.conf