Genio 700-EVK
Overview
On Genio 700-EVK, there are 5 playback hardware and 4 capture hardware.
- Playback
Earphone-Out Jack
Speaker-Out Jack
PCM Out
HDMI Audio Out
DP Audio Out
- Capture
PCM In
Earphone-In Jack
AMIC In
DMIC In
Genio 700-EVK board provides a 3.5mm Earphone jack which has both playback and capture functions. Another 3.5mm Speaker jack for line out which has no built-in audio amplifier. PCM interface is used for the transmission of audio digital signals. Genio 700-EVK board was designed with one analog microphone and two digital microphones.
For the position of the earphone jack, speaker jack, HDMI/DP port, DMIC, and AMIC, please refer to Board Top View.
pcmC0D0p
plays the sound toEarphone-Out Jack
orSpeaker-Out Jack
.pcmC0D2p
plays the sound toPCM Out
.pcmC0D5p
plays the sound to eitherHDMI Audio Out
orDP Audio Out
.pcmC0D8c
records the voice fromPCM In
.pcmC0D10c
records the voice fromEarphone-In Jack
orAMIC In
.pcmC0D14c
records the voice fromDMIC In
.
Playback
Earphone Jack Speaker
By default, the Genio 700-EVK board plays the audio to the earphone jack speaker. Run the following command to make sure that the sound’s output is the earphone jack:
amixer -c mt8390evk cset name='HP Mux' 'Audio Playback'
You can use aplay
to play the music through the earphone jack.
aplay
is a command-line sound file player for the ALSA sound card driver.
For more details about aplay
, please refer to aplay.
aplay -D jack_speaker sample.wav
You can adjust the gain of the earphone jack. The range of the value is from 0 to 30. The value 0 represents the maximum volume and the value 30 represents the minimum volume.
Use the following command to control the volume:
amixer -c mt8390evk cset name='Headset Volume' 30
amixer -c mt8390evk cset name='Headset Volume' 0
Speaker Jack Speaker
The default setting of HP Mux works for earphone jack playback. HP Mux is a mixer switch for Headphone. It has 5 cases in HP Mux:
Item #0 ‘Open’
Item #1 ‘LoudSPK Playback’
Item #2 ‘Audio Playback’
Item #3 ‘Test Mode’
Item #4 ‘HP Impedance’
You should set ‘HP Mux’ ‘Open’ when using speaker jack playback.
amixer -c mt8390evk cset name='HP Mux' 'Open'
amixer -c mt8390evk cset name='LOL Mux' 'Playback_L_DAC'
Note
You need to set this mux before using the speaker jack. Otherwise, there will be noise with playback music.
Use aplay
to play the music through the speaker jack.
aplay -D jack_speaker sample.wav
PCM Out
Use aplay
to play the music through the PCM interface.
aplay -D pcm_out sample.wav
HDMI/DP Speaker
You can play the audio via HDMI and DP.
aplay -D hdmi_dp_out sample.wav
Note
By default, Genio 700-EVK enables HDMI and disables DP. If you want to use DP audio, please load the dtbo to enable DP.
Loading the display-hdmidp.dtbo
enables simultaneous audio output on both HDMI and DP.
Warning
When removing the DP device, the DPTX_OUT_MUX
configuration needs to be turned off.
amixer -c mt8390evk cset name='DPTX_OUT_MUX' 0
And if you need to use the DP feature again, please reopen the DPTX_OUT_MUX
.
amixer -c mt8390evk cset name='DPTX_OUT_MUX' 1
Capture
PCM In
You can use the following command to record the voice through the PCM interface. The file you record will name sample.wav, and be stored in /tmp.
arecord -D pcm_in -c 2 -r 48000 -f S32_LE -d 10 /tmp/sample.wav
Earphone Jack Microphone
By default, the Genio 700-EVK board records the voice from the earphone jack microphone.
Run the following command to set the mux:
amixer -c mt8390evk cset name='PGA_L_Mux' 'AIN1'
Note
The default setting of this mux: AIN1
is used for headphone recording, but this mux is also used by AMIC.
You should set this mux to AIN0
when using AMIC.
The following command is an example that will start a mono record with a 48KHz sampling rate and signed 32-bit format:
arecord -D jack_mic -r 48000 -f S32_LE sample.wav
Digital Microphone
You can record the voice from the DMIC port.
The following command is an example that will record a 10 seconds file named sample.wav
:
arecord -D dmic -c 2 -r 48000 -f S32_LE -d 10 sample.wav
Analog Microphone
You can record the voice from the AMIC port.
Before using the AMIC Microphone, run the following commands first.
Mux setting:
amixer -c mt8390evk cset name='PGA_L_Mux' 'AIN0'
Volume setting:
amixer -c mt8390evk cset name='PGA1 Volume' 3
Note
You need to set this mux because the default setting is AIN1
and is for the headphone recording.
Note
The range of the volume value from small to loud is 0 to 4.
The following command is an example that will record a 10 seconds file named sample.wav
:
arecord -D amic -r 48000 -f S32_LE -d 10 sample.wav
Loopback Test
There’s a loopback audio test that directly transfers the input voice to the output audio. For example:
To transfer Earphone-In Jack to Earphone-Out Jack:
arecord -D jack_mic -r 48000 -f S32_LE | aplay -D jack_speaker -r 48000 -f S32_LE
Porting Guide
Here are three audio porting guides that cover essential aspects of integrating audio components into your system. These porting guides provide comprehensive information and instructions to ensure seamless integration of audio functionalities in your device.
For more details, please refer to the audio porting guide on MediaTek On-Line.
Type |
Document Path |
---|---|
DMIC |
IoT/Software/Genio Series SoC/Genio 1200/IoT Linux/Audio/MTK_MT8390_MT8395_IoT_Yocto_Audio_DMIC_Driver_User_Guide_v1.0.pptx |
eTDM |
IoT/Software/Genio Series SoC/Genio 1200/IoT Linux/Audio/MTK_MT8390_MT8395_IoT_Yocto_Audio_eTDM_Driver_User_Guide_v1.0.pptx |
PMIC |
IoT/Software/Genio Series SoC/Genio 1200/IoT Linux/Audio/MTK_MT8390_MT8395_IoT_Yocto_MT6365_PMIC_Audio_Codec_User Guide_v1.0.pptx |