I need to change the byte order of an audio capture stream. The McBSP is capturing the data, and the EDMA is sending it to ALSA kernel drivers on a DM365 processor. Unfortnately, it is sending the wrong 16 bits off ( 4byte i2s stream to 2 byte pcm capture ). Can I use the EDMA to change the byte order?
[brettb@maven audtest]$ ./dwav32.sh 2v1.wav | less
...
0001444 ffe73d00 ffe75d00
0001454 fffeca00 ffff1000
0001464 0016c700 00168100
0001474 002e2500 002e1e00
0001504 00455c00 0044e200
0001514 005c2400 005ba900
0001524 00725300 0071e600
0001534 0087df00 00879b00
0001544 009c5d00 009be900
0001554 00b03100 00af8b00
0001564 00c2a800 00c23700
0001574 00d43300 00d35700
[brettb@maven audtest]$ ./dwav8.sh 2v1.wav | less
...
0001444 00 3d e7 ff 00 5d e7 ff
0001454 00 ca fe ff 00 10 ff ff
0001464 00 c7 16 00 00 81 16 00
0001474 00 25 2e 00 00 1e 2e 00
0001504 00 5c 45 00 00 e2 44 00
0001514 00 24 5c 00 00 a9 5b 00
0001524 00 53 72 00 00 e6 71 00
0001534 00 df 87 00 00 9b 87 00
0001544 00 5d 9c 00 00 e9 9b 00
0001554 00 31 b0 00 00 8b af 00
0001564 00 a8 c2 00 00 37 c2 00
0001574 00 33 d4 00 00 57 d3 00
[brettb@maven audtest]$
[brettb@maven audtest]$ cat dwav32.sh
od --skip=44 -t x4 --width=8 $1
[brettb@maven audtest]$
Can I pull off the bytes at offset McBSP.DDR+2?