VAR-SOM-MX6 Android Audio: Difference between revisions
(Created page with "==Android Audio== To give you overview we recommend you go through the https://source.android.com/devices/audio documents. ===Android Provides=== # Audio HAL from NXP # Var...") |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Android Audio== | ==Android Audio== | ||
To give you overview we recommend you go through the https://source.android.com/devices/audio documents. | To give you 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 | ||
# Variscite adds codec support to the HAL | # Variscite adds codec support to the HAL | ||
# Once you program the images, it comes with the required HAL support. | # Once you program the images, it comes with the required HAL support. | ||
===Hardware Setup=== | ===Hardware Setup=== | ||
===Audio In=== | ===Audio In=== | ||
- Connect 3.5 mm jack to Audio In: Ref:https://www.amazon.ca/AmazonBasics-3-5mm-Stereo-Audio-Cable/dp/B00NO73MUQ | - Connect 3.5 mm jack to Audio In: Ref:https://www.amazon.ca/AmazonBasics-3-5mm-Stereo-Audio-Cable/dp/B00NO73MUQ <br> | ||
- One side Audio Output, one side Audio In Jack of the platform. | - One side Audio Output, one side Audio In Jack of the platform. <br> | ||
- Depending upon the HW connect the audio jack as per following connectors. | |||
==Audio Output | ===VAR-SOM-MX6=== | ||
- Line IN: J21 <br> | |||
- Headphone Out: J20 <br> | |||
- DMIC: On board | |||
===DART-MX6=== | |||
- Line IN: J3 <br> | |||
- Headphone Out: J2 <br> | |||
- DMIC: Onboard <br> | |||
===VAR-SOM-Solo/Dual=== | |||
- Line IN: J3 <br> | |||
- Headphone Out:J2 <br> | |||
- DMIC: Onboard <br> | |||
==Audio Output== | |||
- Connect 3.5 mm headphone jack to headphone / speaker | - Connect 3.5 mm headphone jack to headphone / speaker | ||
==Audio In test== | ==Audio In test== | ||
- Start Sound Record as per below | - Start Sound Record as per below screen shot<br> | ||
- Make sure you have audio available | - Make sure you have audio available | ||
- Click on the record button and you should see below screen | |||
[[File:Audio_In.png]] | |||
==Audio Out test== | ==Audio Out test== | ||
- | - To review recorded audio, you may click on play button <br> | ||
[[File:Audio_Review.png]] <br> | |||
- Click on music player app (Cactus Player) <br> | |||
[[File:Audio_Out_Cactus_Player.png]]<br> | |||
- Click on music / recorded audio you captured <br> | |||
[[File:Audio_Out_Cactus_Playing_Audio.png]]<br> | |||
==DMIC test== | |||
To setup the DMIC use blow commands | |||
===Check current status (Default is - Line in)=== | |||
var_mx6:/ # tinymix 'DMic Rate' | |||
DMic Rate: >off 128x 64x 32x | |||
===To set DMIC rate 128x=== | |||
var_mx6:/ # tinymix 'DMic Rate' '1' | |||
var_mx6:/ # tinymix 'DMic Rate' | |||
DMic Rate: off >128x 64x 32x | |||
===To set DMIC rate 64x=== | |||
var_mx6:/ # tinymix 'DMic Rate' '2' | |||
var_mx6:/ # tinymix 'DMic Rate' | |||
DMic Rate: off 128x >64x 32x | |||
===To set DMIC rate 32x=== | |||
var_mx6:/ # tinymix 'DMic Rate' '3' | |||
var_mx6:/ # tinymix 'DMic Rate' | |||
DMic Rate: off 128x 64x >32x | |||
var_mx6:/ # | |||
===To rurn-off DMIC=== | |||
var_mx6:/ # tinymix 'DMic Rate' off | |||
var_mx6:/ # tinymix 'DMic Rate' | |||
DMic Rate: >off 128x 64x 32x | |||
var_mx6:/ # | |||
Use above recording application to record via the application. |
Latest revision as of 00:41, 24 November 2018
Android Audio
To give you overview we recommend you go through the https://source.android.com/devices/audio documents.
Android Provides
- Audio HAL from NXP
- Variscite adds codec support to the HAL
- Once you program the images, it comes with the required HAL support.
Hardware Setup
Audio In
- Connect 3.5 mm jack to Audio In: Ref:https://www.amazon.ca/AmazonBasics-3-5mm-Stereo-Audio-Cable/dp/B00NO73MUQ
- One side Audio Output, one side Audio In Jack of the platform.
- Depending upon the HW connect the audio jack as per following connectors.
VAR-SOM-MX6
- Line IN: J21
- Headphone Out: J20
- DMIC: On board
DART-MX6
- Line IN: J3
- Headphone Out: J2
- DMIC: Onboard
VAR-SOM-Solo/Dual
- Line IN: J3
- Headphone Out:J2
- DMIC: Onboard
Audio Output
- Connect 3.5 mm headphone jack to headphone / speaker
Audio In test
- Start Sound Record as per below screen shot
- Make sure you have audio available
- Click on the record button and you should see below screen
Audio Out test
- To review recorded audio, you may click on play button
- Click on music player app (Cactus Player)
- Click on music / recorded audio you captured
DMIC test
To setup the DMIC use blow commands
Check current status (Default is - Line in)
var_mx6:/ # tinymix 'DMic Rate' DMic Rate: >off 128x 64x 32x
To set DMIC rate 128x
var_mx6:/ # tinymix 'DMic Rate' '1' var_mx6:/ # tinymix 'DMic Rate' DMic Rate: off >128x 64x 32x
To set DMIC rate 64x
var_mx6:/ # tinymix 'DMic Rate' '2' var_mx6:/ # tinymix 'DMic Rate' DMic Rate: off 128x >64x 32x
To set DMIC rate 32x
var_mx6:/ # tinymix 'DMic Rate' '3' var_mx6:/ # tinymix 'DMic Rate' DMic Rate: off 128x 64x >32x var_mx6:/ #
To rurn-off DMIC
var_mx6:/ # tinymix 'DMic Rate' off var_mx6:/ # tinymix 'DMic Rate' DMic Rate: >off 128x 64x 32x var_mx6:/ #
Use above recording application to record via the application.