美文网首页树莓派/香橙派.Space树莓派
Orangepi Zero播放声音报错的解决方案

Orangepi Zero播放声音报错的解决方案

作者: 探索实践 | 来源:发表于2020-03-06 14:35 被阅读0次
系统:Armbian

今天想让Orangepi zero播放声音,但是安装mplayer后报错,根本就找不到声卡.
但是Orangepi zero硬件是支持播放声音的啊.

报错内容:
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: confmisc.c:767:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1246:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio:
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
image
image

后来才看到:因为声卡是在拓展板上的,所以需要一些设置才能启用,默认是不启用声卡的.

在终端键入

armbian-config

选择System

image

选择Hareware

image

选上analog-codec,保存.退出然后按照指示重启即可

image

相关文章

网友评论

    本文标题:Orangepi Zero播放声音报错的解决方案

    本文链接:https://www.haomeiwen.com/subject/dnjirhtx.html