“ALSA troubleshooting grid”的版本间的差异

来自百问网嵌入式Linux wiki
第1行: 第1行:
Some typical issues related to the [[ALSA_overview|ALSA]] framework are listed below. Solutions or debugging methods are proposed for these issues.
+
下面列出了与 [[ALSA_overview|ALSA]] 框架相关的一些典型问题。 针对这些问题,提出了解决方案或调试方法。
  
If your issue is not listed, try also looking in the articles in the [[:Category:ALSA|ALSA]] or [[:Category:Troubleshooting grids|troubleshooting grids]] categories.
+
如果您的问题未列出,请尝试也查看 [[:Category:ALSA|ALSA]] [[:Category:Troubleshooting grids|troubleshooting grids]]类别中的文章。
  
 
{{:Troubleshooting grid table template}}
 
{{:Troubleshooting grid table template}}
第12行: 第12行:
 
write error: Input/output error</pre>
 
write error: Input/output error</pre>
 
||
 
||
This error occurs on an audio playback, when audio samples are not output. A possible cause is a wrong configuration of the audio interface:
+
不输出音频样本时,在音频播放中会发生此错误。 可能的原因是音频接口的配置错误:
 
:- DAI gpios not activated: missing in DT or in bad state
 
:- DAI gpios not activated: missing in DT or in bad state
 
:- DAI/codec not clocked: kernel/master clock not enabled
 
:- DAI/codec not clocked: kernel/master clock not enabled
第20行: 第20行:
 
Active stream rates conflict</pre>
 
Active stream rates conflict</pre>
 
||
 
||
The two SAI sub blocks which are connected to the audio codec, share their master clock on Disco and Evaluation boards. When running both capture and playback on the codec, the chosen sampling rates must be multiple of each other, because of this dependency. If sampling rates are not compatible, an error is issued.
+
连接到音频编解码器的两个SAI子模块在Disco和Evaluation板上共享其主时钟。 当在编解码器上同时运行捕获和回放时,由于这种依赖性,所选采样率必须彼此倍数。 如果采样率不兼容,则会发出错误。
 
</onlyinclude>
 
</onlyinclude>
 
|}
 
|}
 
<noinclude>
 
[[Category:ALSA]]
 
[[Category:Troubleshooting grids]]
 
{{ArticleBasedOnModel | Contributors:Troubleshooting grid article model}}
 
{{PublicationRequestId | Auto | 2019-09-26| NathalieS}}
 
</noinclude>
 

2020年11月5日 (四) 10:04的版本

下面列出了与 ALSA 框架相关的一些典型问题。 针对这些问题,提出了解决方案或调试方法。

如果您的问题未列出,请尝试也查看 ALSAtroubleshooting grids类别中的文章。


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

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

- DAI gpios not activated: missing in DT or in bad state
- DAI/codec not clocked: kernel/master clock not enabled

Refer to Soundcard configuration

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

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