我最近刚刚在一台新台式机上安装了 Ubuntu 20.04,并进行了插孔连接(带或不带使用分离器) 用麦克风发出声音似乎是不可能的。
我想使用耳机听声音,并使用耳机的麦克风进行交流,但目前还不行。
我已经尝试了所有方法:
- 升级内核至
5.7.1
- 清除脉冲配置;
rm -rf ~/.config/pulse/
。 - 杀死 pulseaudio 重新加载 ALSA;
pulseaudio -k && sudo alsa force-reload
- 查找我的音频编解码器(ALC1220->用于游戏主板的双编解码器)并添加以下映射:
options snd-hda-intel model=dual-codecs
到:/etc/modprobe.d/alsa-base.conf
。 - 安装和使用
pavucontrol
。 alsactl restore
。apt-get update/upgrade/dist-upgrade
- 关机/重启多次。
现在可以检测到麦克风,但无法检测到耳机:
硬件:
主板:ROG Strix X570-I(规格)
- SupremeFX 8 声道高清音频编解码器 S1220A(支持:插孔检测、前面板插孔重新分配)
耳机:Sennheiser HD 450BT 耳机(规格)
- 连接性:蓝牙 v4.0/NFC 配对
lspci | grep Audio
:
0b:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
0d:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfcda0000 irq 138
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfcc00000 irq 140
dmesg | grep codec
[ 3.102699] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC1220: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 3.102701] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 3.102702] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 3.102703] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 3.102703] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 3.102705] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19
[ 3.102706] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18
[ 3.102707] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a
cat /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
# Add audio for ALC1220 (gaming mobos)
options snd-hda-intel position fix=1
options snd-hda-intel model=dual-codecs