每次重新启动系统后它都可以正常工作,然后突然我的声音输出停止工作。
sun@sun-To-be-filled-by-O-E-M:~$ speaker-test
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
编辑
sun@sun-To-be-filled-by-O-E-M:~$ alsactl init
Found hardware: "USB-Audio" "USB Mixer" "USB046d:082d" "" ""
Hardware is initialized using a generic method
sun@sun-To-be-filled-by-O-E-M:~$ speaker-test
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
sun@sun-To-be-filled-by-O-E-M:~$
答案1
我已经遇到这个问题一段时间了,但对我来说,这种情况发生得更多。当这种情况发生时,解决方案一直是从 CLI 重新启动 Alsa。
alsactl init
这应该重新启动 alsa 系统并重新初始化您的音频硬件。