[RK3288][Android6.0] 音頻調試方法小結【轉】

來源:互聯網
上載者:User

標籤:orm   top   rockchip   .net   channels   查看   size   錄音   star   

本文轉載自:http://blog.csdn.net/kris_fei/article/details/70053135

Platform: ROCKCHIP
OS: Android 6.0
Kernel: 3.10.92

以rt5631為例,後續遇到再增加.

使用tinyalsa工具確定播放音問題是否在驅動層
1|[email protected]:/data # tinycap  test.wav                                        
Capturing sample: 2 ch, 44100 hz, 16 bit
^CCaptured 167936 frames

[email protected]:/data # tinyplay test.wav                                          
Playing sample: 2 ch, 44100 hz, 16 bit

查看codec寄存器和正常的對比

[email protected]:/data # cat /sys/kernel/debug/asoc/RK_RT5631/rt5631.2-001a/codec_reg                         <
00: 0000
01: 0000
//省略...

查看i2s寄存器和正常的對比
[email protected]:/data # cat /sys/kernel/debug/regmap/ff890000.rockchip-i2s/registers
00: 0000000f
04: 00000000
08: 00033f3f
0c: 00000000
10: 000f0010
14: 00000000
18: 00000000
1c: 00000000
20: 00000000
28: 00000000

查看播放或者錄音時的sw/hw parameters:(注意,要在工作的時候才有效)
[email protected]:/proc/asound/card0/pcm0p/sub0 # cat sw_params                      
tstamp_mode: ENABLE
period_step: 1
avail_min: 1
start_threshold: 1536
stop_threshold: 3072
silence_threshold: 0
silence_size: 0
boundary: 1610612736

[email protected]:/proc/asound/card0/pcm0p/sub0 # cat hw_params                      
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 512
buffer_size: 3072

硬體部分用示波器量一下I2S是否有訊號

[RK3288][Android6.0] 音頻調試方法小結【轉】

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.