This guide provides an overview of the audio system on the Allwinner T507 platform, including DMA transfer, Audio Hub configuration, and audio testing tools.
DMA channels are used by sound cards on the Allwinner T507 to transfer audio data between the card and RAM without CPU intervention, enhancing data transfer rates and CPU utilization.
Key components of the T507 Audio System include the Audio codec, Audio Hub, DMIC, and OWA (One Wire Audio). The Audio codec performs digital-to-analog conversion, while the Audio Hub integrates audio functions and mixing capabilities.
Users can check the current audio device nodes on the system using commands like 'cat /proc/asound/cards' and 'cat devices'.
The Audio Hub default configuration and recommended configurations for I2S0 and I2S2 channels are provided for setup purposes.
Audio channel configurations impact test routines, like playback tests requiring headphones or speakers connected to specific interfaces.
Testing tools include alsa-utils (amixer, aplay, arecord) that utilize alsa-lib and tinyalsa (tinymix, tinyplay, tinycap) providing basic PCM and control interfaces.
For audio playback, 'aplay -Dhw:0,0 mic.wav' can be used, and recording using the 8960 external audio chip involves 'tinycap_ahub mic.wav -aD 1 -ad 1 -D 3 -d 0 -t 30 -b 16 -c 2 -p 1024'.