This example demonstrates how to use the Linux API to control the input and output of audio,please refer to the source code for detail.
- Hardware debugging environment to see chapter2.
|Audio interface||Audio input J11，Headphones Connect J10||Audio input J9，Headphones Connect J8||Audio input J10，Headphones Connect J9|
- Linux Kernel 4.1.18
- audio_test application
- Copy cross compiled
/usr/bindirectory of the MYD-AM335x series development board.Plug the headset into the audio output port, enter the audio input to the audio input port, enter the following command at the Linux terminal:
rate set to 21999, expected 22000
Init capture successfully, rate: 21999, period_size: 128
rate set to 21998, expected 21999
Period size: 128 frames, buffer size: 256 bytes