我使用的是运行 Arch Linux 的 Alienware M16,并且安装了 Pipewire,并且有 2 个可用控制器,一个由 Nvidia 显卡控制,一个由 AMD 音频控制器控制。通过电缆将外部耳机连接到耳机插孔可使麦克风工作,但当未连接外部耳机时,内部麦克风仅记录静态噪音,并且不会对任何外部刺激做出任何反应。
pactl list cards
Card #41
Name: alsa_card.pci-0000_01_00.1
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = "false"
api.alsa.card = "0"
api.alsa.card.longname = "HDA NVidia at 0xc1000000 irq 114"
api.alsa.card.name = "HDA NVidia"
api.alsa.path = "hw:0"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
api.dbus.ReserveDevice1.Priority = "-20"
device.api = "alsa"
device.bus = "pci"
device.bus_path = "pci-0000:01:00.1"
device.description = "HDA NVidia"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_01_00.1"
device.nick = "HDA NVidia"
device.plugged.usec = "11825145"
device.product.id = "0x22bc"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0"
device.vendor.id = "0x10de"
device.vendor.name = "NVIDIA Corporation"
media.class = "Audio/Device"
factory.id = "14"
client.id = "40"
object.id = "41"
object.serial = "41"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xc1000000 irq 114"
alsa.driver_name = "snd_hda_intel"
alsa.mixer_name = "Nvidia GPU a5 HDMI/DP"
alsa.components = "HDA:10de00a5,10280bfe,00100100"
alsa.id = "NVidia"
device.string = "0"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
pro-audio: Pro Audio (sinks: 4, sources: 0, priority: 1, available: yes)
Active Profile: pro-audio
Ports:
hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 1"
device.icon_name = "video-display"
card.profile.port = "0"
Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 2"
device.icon_name = "video-display"
card.profile.port = "1"
Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 3"
device.icon_name = "video-display"
card.profile.port = "2"
Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 4"
device.icon_name = "video-display"
card.profile.port = "3"
Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
Card #42
Name: alsa_card.pci-0000_09_00.6
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = "false"
api.alsa.card = "1"
api.alsa.card.longname = "HD-Audio Generic at 0xc17c0000 irq 115"
api.alsa.card.name = "HD-Audio Generic"
api.alsa.path = "hw:1"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio1"
api.dbus.ReserveDevice1.Priority = "-20"
device.api = "alsa"
device.bus = "pci"
device.bus_path = "pci-0000:09:00.6"
device.description = "Family 17h/19h HD Audio Controller"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_09_00.6"
device.nick = "HD-Audio Generic"
device.plugged.usec = "12540671"
device.product.id = "0x15e3"
device.product.name = "Family 17h/19h HD Audio Controller"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.6/sound/card1"
device.vendor.id = "0x1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
media.class = "Audio/Device"
factory.id = "14"
client.id = "40"
object.id = "42"
object.serial = "42"
object.path = "alsa:pcm:1"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xc17c0000 irq 115"
alsa.driver_name = "snd_hda_intel"
alsa.mixer_name = "Realtek ALC3254"
alsa.components = "HDA:10ec0295,10280bfe,00100002"
alsa.id = "Generic"
device.string = "1"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 2, priority: 1, available: yes)
Active Profile: output:analog-stereo+input:analog-stereo
Ports:
analog-input-headphone-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
Properties:
port.type = "mic"
device.icon_name = "audio-input-microphone"
card.profile.port = "0"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-input-headset-mic: Headset Microphone (type: Headset, priority: 8800, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
Properties:
port.type = "headset"
port.availability-group = "Legacy 1"
device.icon_name = "audio-input-microphone"
card.profile.port = "1"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 2, availability unknown)
Properties:
port.type = "speaker"
port.availability-group = "Legacy 2"
device.icon_name = "audio-speakers"
card.profile.port = "2"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
pavucontrol“输入设备”选项卡中的设备系列 17h/19h HD 音频控制器模拟立体声具有“耳机麦克风”和“麦克风”选项。 “配置”选项卡中的同一设备具有“模拟立体声输入”、“模拟立体声输出”、“模拟立体声输入”、“专业音频”和“关闭”选项。
sudo dmesg | grep -E 'audio|jack|pipewire|pulse|alsa'
输出
[ 11.751401] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 11.751560] snd_hda_intel 0000:01:00.1: Applying patch firmware 'hda-jack-retask.fw'
[ 11.753103] snd_hda_intel 0000:09:00.6: Applying patch firmware 'hda-jack-retask.fw'
[ 11.836630] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC3254: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 11.836633] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 11.836635] snd_hda_codec_realtek hdaudioC1D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 11.836637] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 11.836638] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 11.836639] snd_hda_codec_realtek hdaudioC1D0: Headset Mic=0x19
[ 11.836640] snd_hda_codec_realtek hdaudioC1D0: Headphone Mic=0x1b
wpctl status
输出
PipeWire 'pipewire-0' [1.0.7, UserName@Computer, cookie:355324114]
└─ Clients:
31. kwin_wayland [1.0.7, UserName@Computer, pid:1171]
32. WirePlumber [1.0.7, UserName@Computer, pid:1241]
40. WirePlumber [export] [1.0.7, UserName@Computer, pid:1241]
135. xdg-desktop-portal [1.0.7, UserName@Computer, pid:1179]
136. pipewire [1.0.7, UserName@Computer, pid:1742]
137. KMix [1.0.7, UserName@Computer, pid:1726]
138. libcanberra [1.0.7, UserName@Computer, pid:1432]
139. plasmashell [1.0.7, UserName@Computer, pid:1432]
140. Plasma PA [1.0.7, UserName@Computer, pid:1432]
149. Dolphin [1.0.7, UserName@Computer, pid:6878]
166. Google Chrome input [1.0.7, UserName@Computer, pid:473]
226. audacity.bin [0.3.83, UserName@Computer, pid:2]
253. Plasma PA [1.0.7, UserName@Computer, pid:19329]
271. ZOOM VoiceEngine [1.0.7, UserName@Computer, pid:5]
340. qpwgraph [1.0.7, UserName@Computer, pid:15451]
574. wpctl [1.0.7, UserName@Computer, pid:23910]
Audio
├─ Devices:
│ 41. HDA NVidia [alsa]
│ 42. Family 17h/19h HD Audio Controller [alsa]
│
├─ Sinks:
│ 46. HDA NVidia Pro [vol: 1.00]
│ 47. HDA NVidia Pro 7 [vol: 1.00]
│ 48. HDA NVidia Pro 8 [vol: 1.00]
│ 49. HDA NVidia Pro 9 [vol: 1.00]
│ * 298. Family 17h/19h HD Audio Controller Analog Stereo [vol: 1.00]
│
├─ Sources:
│ * 297. Family 17h/19h HD Audio Controller Analog Stereo [vol: 1.00]
│
├─ Filters:
│
└─ Streams:
Video
├─ Devices:
│ 52. Integrated_Webcam_FHD [v4l2]
│ 53. Integrated_Webcam_FHD [v4l2]
│ 54. Integrated_Webcam_FHD [v4l2]
│ 55. Integrated_Webcam_FHD [v4l2]
│ 59. Integrated_Webcam_FHD: Integrat [libcamera]
│ 60. Integrated_Webcam_FHD: Integrat [libcamera]
│
├─ Sinks:
│
├─ Sources:
│ * 61. Integrated_Webcam_FHD (V4L2)
│ 63. Integrated_Webcam_FHD (V4L2)
│
├─ Filters:
│
└─ Streams:
Settings
└─ Default Configured Devices:
0. Audio/Sink alsa_output.pci-0000_09_00.6.analog-stereo
1. Audio/Source alsa_input.pci-0000_09_00.6.pro-input-0
lsof /sys/class/sound/hwC0D0/reconfig
什么也没带回来。
sudo ps aux | grep -E 'alsa|pulse|jack|pipewire'
带回来了
UserName 1226 0.5 0.3 296744 117160 ? S<sl 12:47 1:19 /usr/bin/pipewire
UserName 1742 0.3 1.1 488224 380748 ? S<sl 12:47 0:50 /usr/bin/pipewire-pulse
UserName 8572 0.0 0.8 2496804 258780 ? Ssl 13:40 0:03 /usr/bin/dolphin --new-window --select admin:/etc/pipewire/
UserName 11948 0.0 0.7 1946940 243756 ? Ssl 14:07 0:03 /usr/bin/kate -b /usr/share/pipewire/pipewire-pulse.conf
UserName 19329 0.0 0.8 2904680 257088 ? Ssl 15:26 0:04 systemsettings kcm_pulseaudio
UserName 25507 0.0 0.0 6612 4084 pts/3 S+ 17:09 0:00 grep --color=auto -E alsa|pulse|jack|pipewire
这就是 qpwgraph 的样子: qpwgraph 设置
我尝试重新安装 Pipewire,还尝试摆弄 qpwgraph,似乎音频捕获不起作用,但它确实连接到了 Audacity 和 Zoom 语音引擎等应用程序的输入。我什至尝试使用命令
pactl set-card-profile alsa_card.pci-0000_09_00.6 output:analog-stereo+input:analog-stereo
似乎没有什么效果。我本以为该卡设置正确并且内置麦克风最终可以工作,但事实并非如此。我还尝试使用 alsamixer 并增强通用声卡的所有输入并取消所有频段的静音,但这也不起作用。将 alsamixer 中的麦克风从耳机麦克风更改为耳机麦克风也没有任何改变。
这是终端中 alsamixer 的屏幕截图:
alsamixer 声音配置按 F5 显示声卡 Realtek ALC3254 中的所有设备
你有没有设法解决这个问题,如果是的话,如何解决?