我有一台 Skylake 系统 (ASRock Z170 Gaming-ITX/ac),搭载 (x)Ubuntu 16.04。
我的扬声器通过 SPDIF 端口连接,但是出现了问题。
当我检查音频配置文件(在 中pavucontrol
)时,我看到 被Analog Stereo Output (unplugged)
选中。即使此配置文件错误,扬声器也会正常播放,但音量无法正常工作 - 任何高于静音的设置都会导致扬声器以最大音量播放。
如果我选择Digital Stereo (IEC958)
,扬声器将根本不会接收任何信号。
我怎样才能解决这个问题?
调试信息:
~$ grep "Codec:" /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: Realtek ALC1150
/proc/asound/card0/codec#2:Codec: Intel Skylake HDMI
~$ lspci -vv # extract
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
Subsystem: ASRock Incorporation Sunrise Point-H HD Audio
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32
Interrupt: pin A routed to IRQ 140
Region 0: Memory at df140000 (64-bit, non-prefetchable) [size=16K]
Region 4: Memory at df120000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
~$ dmesg | grep 00:1f.3
[ 0.181004] pci 0000:00:1f.3: [8086:a170] type 00 class 0x040300
[ 0.181034] pci 0000:00:1f.3: reg 0x10: [mem 0xdf140000-0xdf143fff 64bit]
[ 0.181062] pci 0000:00:1f.3: reg 0x20: [mem 0xdf120000-0xdf12ffff 64bit]
[ 0.181091] pci 0000:00:1f.3: PME# supported from D3hot D3cold
[ 0.181176] pci 0000:00:1f.3: System wakeup disabled by ACPI
[ 0.579846] iommu: Adding device 0000:00:1f.3 to group 8
[ 3.126041] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915_bpo])
[ 4.185983] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
[ 4.186034] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
[ 4.186081] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[ 4.186135] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[ 4.186188] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[ 4.186228] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[ 4.186267] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[ 4.186304] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
答案1
Linux Kernel 4.10解决了这个问题。