I. Background:
The kernel version of ARM Linux is 3.13.0
Two. Preparatory work
Add ALSA drivers to the kernel, that is, when compiling the kernel, add the following options:
You can then recompile the kernel to
Three. Cross-compiling Alsa-lib and Alsa-utils (Alsa-utils is a series of audio device control tools, and Alsa-lib is a library of alsa-utils dependencies, so the Alsa-lib is compiled first)
3.1 Cross-compiling alsa-lib
3.2 Cross-compiling alsa-utils
Four. The three compiled libraries and tools are copied to the Arm Development Board (the author usually directly after the compilation is compressed and then copied to the Development Board for decompression, in order to avoid the direct copy of the soft link can not copy the situation)
Five. Use the tools in Alsa-utils to record and play
Recording:
Arecord-d "plughw:0,0" demo.wmv
Play:
Aplay-d "plughw:0,0" demo.wmv
Six: Precautions:
If you copy the tools in the compiled alsa-utils to a storage device in the FAT32 format, note that FAT32 does not support soft links, you need to copy a aplay directly and change the name to Arecord:
CP Aplay Arecord
Arm Linux uses ALSA to drive and use USB Audio devices