Dear Sir or Madam,
Our product have two sound card and we want different sound can through the dif card output.
Now out hw platform is IMX6 and use android system. We find the default code didn't implement the function.
Do you know what code needs to modified?
Thanks.
First, you have to change the Android HAL according to your hardware configuration. Then, a custom application should be created. For more information, refer to the Android Developer sites:
https://source.android.com/devices/audio/index.html
http://developer.android.com/reference/android/media/package-summary.html
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
Thanks for your reply. I already modify hal to support second sound card, but now at the same time, there is only one sound card work.
But I need play different audio through HDMI and Speaker simultaneously in android? Can you give me some advice?
Thanks.
Refer to the sites above, they contain all required information.
Regards,
Artur
Hi artur,
I had check the website but android didn't implement our demand. So I would like to know whether IMX have the function to achieve this?
Thanks.
Refer to multi-channel audio feature, described here:
Audio Implementation | Android Open Source Project
Artur
Hi artur,
Thanks for your reply. You may not understand our needs. That only one sound card can work at the same time.
OK, so, please describe the task in more details. What physical interfaces do you use to play sound?