音訊故障排除 - 音效卡問題

音訊故障排除 - 音效卡問題

我剛剛使用此圖像啟動了樹莓派:ubuntu-16.04.3-preinstalled-server-armhf+raspi2.img 似乎未檢測到或“開箱即用”配置聲卡

root@ubuntu:/home/ubuntu# cat /proc/asound/cards 
--- no soundcards ---

我對內核模組或用於加載/刪除它們的工具沒有太多經驗。我確實了解到樹莓派聲卡的模組沒有加載,所以我嘗試了:

root@ubuntu:/home/ubuntu# modprobe snd_bcm2835

似乎加載良好:

root@ubuntu:/home/ubuntu# lsmod |grep snd
snd_bcm2835            32768  0
snd_pcm               106496  1 snd_bcm2835
snd_timer              32768  1 snd_pcm
snd                    81920  3 snd_bcm2835,snd_timer,snd_pcm
soundcore              16384  1 snd

我還確定alsa-utils已安裝。但我仍然無法播放聲音,並且仍然從這些命令得到以下結果:

root@ubuntu:/home/ubuntu# cat /proc/asound/cards 
--- no soundcards ---

-

root@ubuntu:/home/ubuntu# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)

-

root@ubuntu:/home/ubuntu# play nice.ambient.mp3
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
play FAIL formats: can't open output file `default': snd_pcm_open error: No such file or directory

確保聲卡適用於該映像並且從啟動即可正常工作的正確步驟是什麼?

相關內容