# 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
#
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
#