10. Headphone Interface
10.1 Interface Model and Connection
- The connector package is 0.8mm pitch (0.8mm 1x3P through-hole), detailed specifications are available in the connector datasheet.
- Audio chips: es8388/es8316.
ArmSoM products are equipped with this headphone interface by default.
Headphone Interface | Pin | Function |
---|---|---|
HPOUT_R | 1 | Right channel audio output |
HPOUT_L | 2 | Left channel audio output |
HP_GND | 3 | Ground (GND) |
Explanation:
- HPOUT_R (Pin 1): Used for right channel audio output, transmitting the audio signal for the right headphone or speaker.
- HPOUT_L (Pin 2): Used for left channel audio output, transmitting the audio signal for the left headphone or speaker.
- HP_GND (Pin 3): Ground pin, completing the circuit for the audio signals.
This is the typical pinout for a 3.5mm stereo headphone jack, providing left and right channel audio output, and a shared ground.
10.2 Using the Headphone Interface
Check the sound card in the system
armsom@armsom-sige7:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchipdp0 [rockchip,dp0], device 0: rockchip,dp0 spdif-hifi-0 [rockchip,dp0 spdif-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchipes8316 [rockchip-es8316], device 0: fe470000.i2s-ES8316 HiFi es8316.7-0011-0 [fe470000.i2s-ES8316 HiFi es8316.7-0011-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Play music
armsom@armsom-sige7:/# aplay -D plughw:1,0 ./usr/share/sounds/alsa/Front_Right.wav