Audio troubleshooting grid

来自百问网嵌入式Linux wiki

Some typical issues related to the audio domain are listed below. Solutions or debugging methods are proposed for these issues.

If your issue is not listed, try looking at in the articles in the Audio or troubleshooting grids categories.


Symptom Resolution
ALSA
aplay: pcm_write:2030:
write error: Input/output error

不输出音频样本时,在音频播放中会发生此错误。 可能的原因是音频接口的配置错误:

- DAI gpios未激活:DT中丢失或处于错误状态
- DAI /编解码器未计时:内核/主时钟未启用

请参阅Soundcard configuration

Error -16 setting sai_ck parent clock.
Active stream rates conflict

连接到音频编解码器的两个SAI子模块在Disco和Evaluation板上共享其主时钟。 当在编解码器上同时运行捕获和回放时,由于这种依赖性,所选采样率必须彼此倍数。 如果采样率不兼容,则会发出错误。


Miscellaneous
Silence is recorded from headset microphone. The following points have to be checked:
- The headset jack must be compatible with CTIA standard.
- Check volumes and mute switches in record path. (ALSA control configuration and Pulseaudio settings)
- Check that the codec is fed with master clock.