交叉编译完alsa-lib后在板子上执行
/ # aplay -D hw:0,1 /0.wav
Playing WAVE '/0.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1305: Can't use period equal to buffer size (0 == 0)
换了多个版本后,问题依旧,解决方式如下:
编译alsa-lib时./configure必须加上选项--with-versioned=no
作者:帅得不敢出门