如何使 Ubuntu 20.04 与 Realtek ALC4080 配合使用

如何使 Ubuntu 20.04 与 Realtek ALC4080 配合使用

我的主板是 ASUS ROS STRIX Z590-A Gaming WiFi,配有 Realtek ALC4080 USB 音频芯片,它不适用于 Ubuntu 20.04 和 5.15 内核。对于耳机,只有在启动前插入耳机才能听到声音,这意味着如果我在系统运行时重新安装耳机,我将无法再听到任何播放声音。耳机麦克风在前面板或后面板都无法使用。顺便说一句,耳机和麦克风始终可以检测到,如图所示pavucontrol

前面板的行为略有不同。每次我将耳机重新插入前面板上的 3.5 毫米插孔时,它都会被检测为“耳机(已插入)”,并且 USB 音频配置文件会切换为“模拟立体声双工” 。我只能通过运行来获取播放声音。但不能从其他应用程序(例如,配置为使用 pulseaudio 作为后端的应用程序)pavucontrol获取播放声音。aplay -D plughw:2,1 <path-to-audio-file>ffplay

这是输出inix -A

Audio:     Device-1: Intel driver: snd_hda_intel
           Device-2: NVIDIA driver: snd_hda_intel
           Device-3: ASUSTek USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid
           Sound Server: ALSA v: k5.15.0-88-generic

Device-1无法从 访问alsamixer。内核日志可能暗示了原因:

[    1.700089] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    1.702803] snd_hda_intel 0000:01:00.1: Disabling MSI
[    1.702807] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.712442] snd_hda_intel 0000:00:1f.3: azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
[    3.724433] snd_hda_intel 0000:00:1f.3: No response from codec, disabling MSI: last cmd=0x000f0000
[    4.732444] snd_hda_intel 0000:00:1f.3: Codec #0 probe error; disabling it...
[    4.737657] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[    4.738438] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving u

附加信息:

$ 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
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 4: USB Audio [USB Audio #4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

我最终尝试了realtek-alc4080-编解码器前插孔不工作,添加 ALC4080 USB-Audio 配置,但没有成功。只要重新安装耳机,我就听不到任何声音了。

看来 Ubuntu 20.04 附带的旧版本的 alsa 无法正确处理 ALC4080,但我不知道如何在保持系统不崩溃的情况下轻松获取新版本的 alsa。

相关内容