Speaker Usage
- The speaker is an 8Ω / 1W model driven by the on-board NS4150B Class D audio power amplifier.
- The device provides a speaker output interface. Users do not need to configure the power amplifier separately and can directly configure the audio playback channel via Linux ALSA tools.
Query Audio Devices
First confirm that the system has recognized the audio device:
aplay -l
Sample output:
**** List of PLAYBACK Hardware Devices ****
card 0: rockchiprv1126b [rockchip,rv1126b-acodec], device 0: dailink-multicodecs multicodec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
Adjust Volume
- Check current Mixer:
amixer
- View supported control items:
amixer scontrols
Sample output:
Simple mixer control 'Headphone',0
Simple mixer control 'Speaker',0
Simple mixer control 'ACodec ADC',0
Simple mixer control 'ACodec Digital Gain',0
- Set volume:
amixer set 'DAC Digital' 50%
note
- Volume set above 80% will cause popping noise.
- Adjust the volume according to actual conditions to avoid overload.
Play Audio
First copy the audio file you need to play to the device. Assume the audio file path is /sdcard/audio.wav3, use the following command to play audio:
aplay /sdcard/audio.wav3
If your audio file is in MP3 format, convert it to WAV format first using the command below, then play it as described above:
ffmpeg -i test.mp3 test.wav
Technical Support and Product Discussion
Thank you for choosing our products! We are here to provide you with various support to ensure your experience with our products is as smooth as possible. We offer multiple communication channels to meet different preferences and needs.