IMX8 Android Audio: Difference between revisions
No edit summary |
|||
Line 4: | Line 4: | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - Android {{#var:ANDROID_NAME}} {{#var:ANDROID_VERSION}} - Audio}} {{DocImage|category1=Android|category2={{#var:HARDWARE_NAME}}}} __toc__ | --> {{PageHeader|{{#var:HARDWARE_NAME}} - Android {{#var:ANDROID_NAME}} {{#var:ANDROID_VERSION}} - Audio}} {{DocImage|category1=Android|category2={{#var:HARDWARE_NAME}}}} __toc__ | ||
==Android Audio== | ==Android Audio== | ||
To give you overview we recommend you go through the https://source.android.com/devices/audio documents. | To give you an overview we recommend you go through the https://source.android.com/devices/audio documents. | ||
===Android Provides=== | ===Android Provides=== | ||
# Audio HAL from NXP | # Audio HAL from NXP | ||
Line 33: | Line 33: | ||
==Audio Out test== | ==Audio Out test== | ||
- To review recorded audio, you may click on play button <br> | - To review recorded audio, you may click on the play button <br> | ||
[[File:Imx8_Audio_Review.png]] <br> | [[File:Imx8_Audio_Review.png]] <br> | ||
- Click on music player app (Cactus Player) <br> | - Click on the music player app (Cactus Player) <br> | ||
[[File:Imx8_Audio_Out_Cactus_Player.png]]<br> | [[File:Imx8_Audio_Out_Cactus_Player.png]]<br> | ||
- Click on music / recorded audio you captured <br> | - Click on music / recorded audio you captured <br> | ||
Line 43: | Line 43: | ||
==DMIC test== | ==DMIC test== | ||
By default if you don't connect the audio input is | By default, if you don't connect the audio input is selected via onboard DMIC | ||
Use above recording application to record via the application. | Use the above recording application to record via the application. |
Revision as of 01:04, 17 August 2023
Android Audio
To give you an overview we recommend you go through the https://source.android.com/devices/audio documents.
Android Provides
- Audio HAL from NXP
- Variscite adds EVK hardware support such as codec, DMIC support to the HAL.
- Once you program the images, it comes with the required HAL support to verify the Audio input / Output Functionality.
Hardware Setup
DART-MX8M
- Line IN: J21 - Audio Jack 3.5 mm
- Headphone Out: J22 - Audio Jack 3.5mm
- DMIC: On board
Audio In
- Connect 3.5 mm jack to Audio In: Ref:https://www.amazon.ca/AmazonBasics-3-5mm-Stereo-Audio-Cable/dp/B00NO73MUQ
- One end to Audio Output of the source you wish to record, one end to Audio In Jack of the DART-MX8M see above
Audio Output
- Connect 3.5 mm headphone jack to headphone / speaker
Audio In test
- Run below commands on adb shell
# tinymix 'Headphone Volume' 35;tinymix 'Capture Input' ADC;tinymix 'DMIC Mux' DMIC2;
- Start Sound Record as per below screen shot
- If app asks for permissions click on allow for microphone and internal stroage dialoge
- Make sure you have audio line in source is playing some music
- Click on the record button and you should see below screen
Audio Out test
- To review recorded audio, you may click on the play button
- Click on the music player app (Cactus Player)
- Click on music / recorded audio you captured
DMIC test
By default, if you don't connect the audio input is selected via onboard DMIC
Use the above recording application to record via the application.