描述
我有一个ROG STRIX B760-F 游戏主板和我特别想在 Ubuntu 22.04 中使用内置声卡的光纤输出。问题是我根本没有声音,无论是通过光纤输出还是通过任何模拟输出(如扬声器)都没有声音。在我的音频设置中,我可以选择:
- HDMI/显示端口 - HDA Nvidia,
- 数字输出 (S/PDIF) U22 XT USB
- 模拟输出 U22 XT USB
- 数字输出 (S/PDIF) - USB 音频
其中U22 XT只是一张 USB 卡,我有时用它来录音(效果很好,但我希望能够使用内置音频)。最后一个选项似乎是主板上的选项,因为如果我将任何东西连接到模拟插孔,它就会变成“扬声器”等。所以是的,它对连接有反应,但没有任何声音。但我不知道为什么它被称为“USB”,因为它是内置的(?)。
任何帮助将非常感激!
我努力了:
我已经在 Windows 10 中测试过它是否可以运行,所以硬件或电缆没有任何问题。
我已经重新启动了 pulseaudio:
pulseaudio --kill
pulseaudio --start
- 设置并重新启动 Pipewire
sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager
- 该命令
lsmod | grep snd_hda_intel
给出:
snd_hda_intel 61440 5
snd_intel_dspcfg 32768 3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_hda_codec 212992 4 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core 147456 7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_pcm 196608 16 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,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
snd 143360 41 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_ump,snd_pcm,snd_rawmidi
所以我尝试了(按照这里):
echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
- 我还尝试完全删除并安装 alsa-base 和 pulseaudio:
sudo apt remove --purge alsa-base
sudo apt remove --purge pulseaudio
sudo apt install alsa-base pulseaudio
和
sudo alsa force-reload
更新:
- 我现在也尝试安装SOF 固件二进制文件正如在回答中解释的那样相关问题。
我使用 github 上的手动安装说明安装了 v2.2,并且还尝试了最新发布使用 install.sh 脚本。但都不起作用。
- 我现在也尝试过
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
改变GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd_intel_dspcfg.dsp_driver=1"
(也尝试了 =3)进入/etc/default/grub
,然后运行:
sudo update-grub
然后重新启动。这些都不起作用。
附加信息
Ubuntu 22.04.4
内核:6.5.0-18-generic
lspci -v
英特尔音频设备的输出:
00:1f.3 Audio device: Intel Corporation Device 7a50 (rev 11)
DeviceName: Intel HD Audio
Subsystem: ASUSTeK Computer Inc. Device 8882
Flags: bus master, fast devsel, latency 32, IRQ 236
Memory at 4002220000 (64-bit, non-prefetchable) [size=16K]
Memory at 4002000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [80] Vendor Specific Information: Len=14 <?>
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
输出aplay -l
:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: USB [U22 XT USB], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
Subdevices: 1/1
Subdevice #0: subdevice #0
这是我的 alsa 配置:/etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
options snd-hda-intel model=generic