使用 14.04 时,我遇到音频间歇性问题(工作然后停止),尝试了很多技巧(实际上从 16.04 恢复到全新的 14.04)但问题仍然存在......
问题
在应用故障排除程序时,我注意到驱动程序在不同的地方使用破折号或下划线以不同的名称引用:snd-hda-intel
在声音模块中,snd_hda_intel
在硬件设备中。
为什么有这些不同的名字?这会产生影响吗?
感谢您的帮助
声音模块
find /lib/modules/`uname -r` | grep snd | grep hda | grep intel
/lib/modules/4.4.0-36-generic/kernel/sound/pci/hda/snd-hda-intel.ko
物理音频硬件
lspci -v | grep -A5 -i "audio"
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Intel Corporation Device 204f
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at f7d30000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
音效卡和设备
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
答案1
我遇到了类似的音频断断续续的问题,设备已列出aplay -l
但仍然没有声音。输出dmesg
显示了真正的问题:
snd_hda_intel: azx_get_response timeout, switching to polling mode: last cmd=0x01270700
snd_hda_intel: No response from codec, disabling MSI: last cmd=0x01270700
snd_hda_intel: azx_get_response timeout, switching to single_cmd mode: last cmd=0x01270700
要修复此问题,请添加以下行/etc/modprobe.d/alsa-base.conf
:
options snd-hda-intel probe_mask=1
来源:https://help.ubuntu.com/community/HdaIntelSoundHowto#Playing_with_probe_mask