Hi,
I would like to create an application in Android platform that uses the aDSP Elite Framework to run customized CAPIv2 modules. My goal is to run in either a Dragonboard 8074 or a rooted LG's G3. Once both have a Snapdragon SoC integrated, I guess that there is no problem. I tried to search in the Qualcomm documentation something about HLOS development, but I didn't have success, I just found something for the calculator example which uses FastRPC. I don't know if I'm having the right understanding, but for Audio Customization Modules, the HLOS access is not by FastRPC, right? If I am right, please provide me some documentation to help me on it!
I apologize if I am misunderstanding the concepts, I am new in DSP programming.
Best regards.
What hlos access to the dsp are you looking for?
With the hexagon sdk you can add your own capi_v2 based audio modules to the audio (elite) framework. Once added they will be loaded and used by the audio framework without hlos involvement. I would recommend following the audio walkthrough in the sdk.
In general:
- create capi_v2 module
- use amdb_mgr or qact lite to add the module
- create and configure an audio topology that uses the module
- set that topology for one or more of the use cases
FastRPC will allow you to offload work to the DSP but does not provide access to the audio process domain.
Hello jmay,
I'm going to explain you what I want my application to do, so like this you will have a clear idea. I want a CAPIv2 module that makes some processing like dereveberation, wiener filtering, etc. So I want to get some audio files as input (saved in an Android folder), process it in the hexagon aDSP using this module on the Elite framework and get the output back and save it at the same folder of the input (for example).
I think I've understood most of what you said, but as soon as I create the module, add it, create and configure the audio topology, in my mind I need to set it and use it from the HLOS, isn't it? My doubt is how do I call the Elite framework passing the input and get the ouput from the HLOS?
I will check out the audio walkthrough again and I will see if I missed something there.
Thank you very much for the reply, I appreciate that!
Hi,
Which SDK version and Dragon board are you using?
To start with, please go through audio examples @ 'C:\Qualcomm\Hexagon_SDK\<SDK_VERSION>\examples\audio'.
For SDK2.0: Please refer to 'file:///C:/Qualcomm/Hexagon_SDK/2.0/docs/Audio/Applications.html'.
For SDK1.2.1: Please refer to 'file:///C:/Qualcomm/Hexagon_SDK/1.2.1/docs/audio.html'
Also, QACT Lite provides a GUI based real time calibration of audio modules.
You can also refer to compute offload to DSP with calculator walkthrough example @ file:///C:/Qualcomm/Hexagon_SDK/2.0/docs/Examples_Compute%20offload.html#calculator
OR
file:///C:/Qualcomm/Hexagon_SDK/1.2.1/docs/examples.html#calculator
Thanks,
Haseeb