rt5350 i2s 测试

50 篇文章 1 订阅
1 篇文章 0 订阅
# i2scmd 
This is Ralink II2S: i2s_release succeeds
2S Command Program...
Usage: [cmd] [srate] [vol] < playback file
           [cmd] [srate] [vol] [size]
       cmd = 0|1 - i2s raw playback|record
       srate = 8000|16000|32000|44100|48000 Hz playback sampling rate
       vol = -10~2 db playback volumn
i2scmd ...quit
# i2scmd 0 8000 -8 < 8126.wav  
This is Ralink II2S: set audio sampling rate to 8000 Hz
2S Command ProgrI2S: I2S_TXENABLE
0xB0000A00 = 0x00004040
0xB0000A18 = 0x00000000
I2S: Enable SoC MCLK 12Mhz
0xB000002C = 0x40200300
0xB0000060 = 0x00400298
I2S: Internal REFCLK 40Mhz with fractional division
0xB0000A24 = 0x0000004E
0xB0000A20 = 0x80000040
0xB0000A00 = 0x00004040
[WM875X(0F)=0x00000000]
[WM875X(19)=0x000000C0]
I2S: WM8750 slave.....
[WM875X(07)=0x00000002]
[WM875X(1A)=0x000001E0]
[WM875X(17)=0x000000C1]
[WM875X(18)=0x00000000]
[WM875X(1B)=0x00000000]
[WM875X(24)=0x00000000]
[WM875X(23)=0x00000000]
[WM875X(22)=0x00000100]
[WM875X(25)=0x00000100]
[WM875X(02)=0x00000179]
[WM875X(03)=0x00000179]
[WM875X(0A)=0x000001FF]
[WM875X(0B)=0x000001FF]
[WM875X(26)=0x00000000]
[WM875X(27)=0x00000000]
[WM875X(05)=0x00000001]
[WM875X(00)=0x00000080]
[WM875X(01)=0x00000080]
[WM875X(05)=0x00000000]
I2S: audiohw_set_frequency=0x0000000D
[WM875X(08)=0x0000000D]
I2S: audiohw_set_lineout_vol
[WM875X(02)=0x000000E0]
[WM875X(03)=0x000001E0]
0xB0000A08 = 0x0000000E
0xB0000A00 = 0x41004040
0xB0000A00 = 0xC1004040
I2S: i2s_tx_enable done
0xB0000234 = 0x800614C0
I2S: I2S_TXENABLE done
I2S: TXBE r=0 w=0[i=1,c=4]
I2S: i2s_irq_isr [0x00000002]
0xB0000A04 = 0xFFFFFFFF
am...


I2S: I2S_TXDISABLE
[WM875X(05)=0x00000008]
[WM875X(15)=0x00000000]
[WM875X(16)=0x00000000]
[WM875X(1A)=0x00000000]
[WM875X(19)=0x00000000]
0xB000002C = 0x40200000
0xB0000A08 = 0x00000000
0xB0000A00 = 0x00004040
0xB0000234 = 0x800610C0
I2S: i2s_release succeeds
i2scmd ...quit


# i2scmd 
This is Ralink II2S: i2s_release succeeds
2S Command Program...
Usage: [cmd] [srate] [vol] < playback file
           [cmd] [srate] [vol] [size]
       cmd = 0|1 - i2s raw playback|record
       srate = 8000|16000|32000|44100|48000 Hz playback sampling rate
       vol = -10~2 db playback volumn
i2scmd ...quit
# i2scmd 0 48000 -8 < 8126.wav 
This is Ralink II2S: set audio sampling rate to 48000 Hz
2S Command ProgrI2S: I2S_TXENABLE
0xB0000A00 = 0x00004040
0xB0000A18 = 0x00000000
I2S: Enable SoC MCLK 12Mhz
0xB000002C = 0x40200300
0xB0000060 = 0x00400298
I2S: Internal REFCLK 40Mhz with fractional division
0xB0000A24 = 0x0000000D
0xB0000A20 = 0x8000000A
0xB0000A00 = 0x00004040
[WM875X(0F)=0x00000000]
[WM875X(19)=0x000000C0]
I2S: WM8750 slave.....
[WM875X(07)=0x00000002]
[WM875X(1A)=0x000001E0]
[WM875X(17)=0x000000C1]
[WM875X(18)=0x00000000]
[WM875X(1B)=0x00000000]
[WM875X(24)=0x00000000]
[WM875X(23)=0x00000000]
[WM875X(22)=0x00000100]
[WM875X(25)=0x00000100]
[WM875X(02)=0x00000179]
[WM875X(03)=0x00000179]
[WM875X(0A)=0x000001FF]
[WM875X(0B)=0x000001FF]
[WM875X(26)=0x00000000]
[WM875X(27)=0x00000000]
[WM875X(05)=0x00000001]
[WM875X(00)=0x00000080]
[WM875X(01)=0x00000080]
[WM875X(05)=0x00000000]
I2S: audiohw_set_frequency=0x00000001
[WM875X(08)=0x00000001]
I2S: audiohw_set_lineout_vol
[WM875X(02)=0x000000E0]
[WM875X(03)=0x000001E0]
0xB0000A08 = 0x0000000E
0xB0000A00 = 0x41004040
0xB0000A00 = 0xC1004040
I2S: i2s_tx_enable done
0xB0000234 = 0x800614C0
I2S: I2S_TXENABLE done
I2S: TXBE r=0 w=0[i=1,c=4]
I2S: i2s_irq_isr [0x00000002]
0xB0000A04 = 0xFFFFFFFF
am...
I2S: I2S_TXDISABLE
[WM875X(05)=0x00000008]
[WM875X(15)=0x00000000]
[WM875X(16)=0x00000000]
[WM875X(1A)=0x00000000]
[WM875X(19)=0x00000000]
0xB000002C = 0x40200000
0xB0000A08 = 0x00000000
0xB0000A00 = 0x00004040
0xB0000234 = 0x800610C0
I2S: i2s_unmask_handler ch=4
I2S: TxDMA not enable
I2S: TxDMA not enable
I2S: i2s_irq_isr [0x00000002]
0xB0000A04 = 0xFFFFFFFF
I2S: i2s_release succeeds
i2scmd ...quit
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值