Audio
1. Overview
The Luckfox Aura development board integrates a complete audio processing subsystem (Audio Codec and SAI interface), supporting analog microphone input and headphone audio output. External analog audio signals can be captured through the internal ADC and transmitted to the CPU. At the same time, the CPU can output local PCM (Pulse Code Modulation) digital audio data through the internal DAC, converting it into analog signals for playback.
2. Audio Configuration
-
Check sound card devices
aplay -l -
Sound device nodes
root@aura:/home/aura# ls /dev/snd/by-path controlC0 pcmC0D0c pcmC0D0p timercontrolC0:Used for sound card control. C0 represents sound card 0, corresponding to the onboard audio devicepcmC0D0c:PCM capture device (recording), "c" stands for capturepcmC0D0p:PCM playback device, "p" stands for playback
root@aura:/home/aura# ls -l /dev/snd/by-path/total 0lrwxrwxrwx 1 root root 12 Sep 3 2025 platform-acodec-sound -> ../controlC0
3. Test
-
When connecting the camera and display for testing, please make sure to stop RKIPC from occupying the audio resources beforehand to avoid conflicts.
sudo suRkLunch-stop-RKIPC_RV1126B.sh -
Recording test
arecord -D main_mic0 -f cd -c 2 -r 48000 test0.wav # Headset microphonearecord -D main_mic1 -f cd -c 2 -r 48000 test1.wav # Onboard microphone -
Playback test
aplay -Dhw:0,0 -t wav /userdata/test.wavaplay -D hw:1,0 -r 44100 test.wav
4. External USB to Audio
Here we use a Waveshare USB to Audio module as an example.
-
Check sound card devices
aplay -l- Example output:

- Example output:
-
Recording test
# Record 5 seconds (stereo, 48kHz)arecord -D hw:1,0 -f cd -r 48000 -d 5 usb_device_test.wav# Continuous recording (press Ctrl+C to stop)arecord -D hw:1,0 -f cd -c 2 -r 48000 usb_mic_test.wav- -D hw:1,0: Specify sound card device (card 1, device 0)
- -f cd: Audio format (16-bit, 44.1kHz, stereo)
- -r 48000: Sample rate (48kHz)
- -c 2: Stereo channels
- -d 5: Duration (seconds)
-
Playback test
# Format: hw:<card>,<device>aplay -D hw:1,0 usb_mic_test.wav