Firefly开源社区

标题: [求救] Time out:: Audio DMA buffdone time out!!! the time = 20005! [打印本页]

作者: woody.lee    时间: 2016-7-18 14:25
标题: [求救] Time out:: Audio DMA buffdone time out!!! the time = 20005!
請教大神:
在 echo 1 > /sys/module/snd_soc_core/parameters/debug_audio_timeout
印出下列訊息:
[  318.598704] Time out:: Audio DMA buffdone time out!!! the time = 20005!
[  318.618374] Time out:: Audio DMA buffdone time out!!! the time = 19989!
[  318.638050] Time out:: Audio DMA buffdone time out!!! the time = 19998!
[  318.657720] Time out:: Audio DMA buffdone time out!!! the time = 19995!
[  318.677399] Time out:: Audio DMA buffdone time out!!! the time = 19999!
[  318.697077] Time out:: Audio DMA buffdone time out!!! the time = 19998!
[  318.716757] Time out:: Audio DMA buffdone time out!!! the time = 20001!
[  318.736438] Time out:: Audio DMA buffdone time out!!! the time = 20000!
[  318.756115] Time out:: Audio DMA buffdone time out!!! the time = 19997!
[  318.775797] Time out:: Audio DMA buffdone time out!!! the time = 20001!
[  318.795479] Time out:: Audio DMA buffdone time out!!! the time = 19999!
[  318.815153] Time out:: Audio DMA buffdone time out!!! the time = 19997!
[  318.834837] Time out:: Audio DMA buffdone time out!!! the time = 20002!
[  318.854515] Time out:: Audio DMA buffdone time out!!! the time = 19998!
[  318.874193] Time out:: Audio DMA buffdone time out!!! the time = 19999!
[  318.893873] Time out:: Audio DMA buffdone time out!!! the time = 20000!
[  318.913552] Time out:: Audio DMA buffdone time out!!! the time = 19998!
[  318.933770] Time out:: Audio DMA buffdone time out!!! the time = 20546!
[  318.952927] Time out:: Audio DMA buffdone time out!!! the time = 19462!
[  318.972597] Time out:: Audio DMA buffdone time out!!! the time = 19993!

請大神指點方向


作者: woody.lee    时间: 2016-7-18 16:30
echo 1 > /sys/module/snd_soc_core/parameters/debug_audio_timeout 基本上就是印出Timeout value而已

主要是因為 i2s 會隨機出現不正常的現象, 在追蹤問題出在哪?

解法是: 把 maxburst加大

sound/soc/rockchip/rk30_i2s.c
-        i2s->playback_dma_data.maxburst = 1;
+        i2s->playback_dma_data.maxburst = 4;

-        i2s->capture_dma_data.maxburst = 1;
+        i2s->capture_dma_data.maxburst = 4;
===============================================================
請神人指點一下, 看這樣改會不會出問題




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1