Hey there,
I am currently trying to get audio output through an USB device connected to the i.MX 8QuadMax board (which is running Android Automotive 12). The set-up looks like this:
Everything is working smoothly except that I would expect the sound to be output through the USB device as soon as this is connected. Other (non automotive) Androids seem to work like this.
I verified that:
As I understand the documentation system sounds are routed through the audio jack socket and media should be routed through IMX-AUD-IO, right?
So it seems to be something with the audio policy configuration. Unfortunately I am not that familiar here. I see that usb_audio_policy_configuration.xml is included in imx8q/mek_8q/audio_policy_configuration_car.xml. So my naive thinking was to just add USB Device Out to car_audio_configuration.xml and assign the media type to it. That didn't work at all.
So would I need to implement a real device into one of the policies or what's the trick here?
I also tried reading through https://source.android.com/docs/core/audio/implement-policy but that also didn't make it that much clearer.
Any hint or point of reference would be really appreciated, thanks!
已解决! 转到解答。
Hello,
In the Android Automotive release, the route is configured as follows: Alarm, notification, and system sounds are played from the audio jack on the CPU board. Other sounds such as music are played from the extended audio board.
According to the Android Automotive reference manual, audio output through USB device is not documented and unfortunately there are no examples about how to do it or even if it is possible.
Additionally, Android Automotive is supported under Professional Services scheme. You could refer to the following link for additional details:
NXP Professional Services | NXP
Best regards.
Hey,
so I totally understand the whole automotive situation. However, I just tested the USB audio output also with the mobile version of Android (NXP sample image) on the board and got the same outcome. This surprised me. Shouldn't this be working at least?
Hello,
Got it, for both, Android and Android Automotive the audio route is through headphone jacks and audio boards, there are not applications to implement audio through USB devices.
Best regards.
Thanks @JorgeCas !
One question regarding the "extended audio board" as I find it hard to get some detailed information:
Hello,
In the Android Automotive release, the route is configured as follows: Alarm, notification, and system sounds are played from the audio jack on the CPU board. Other sounds such as music are played from the extended audio board.
According to the Android Automotive reference manual, audio output through USB device is not documented and unfortunately there are no examples about how to do it or even if it is possible.
Additionally, Android Automotive is supported under Professional Services scheme. You could refer to the following link for additional details:
NXP Professional Services | NXP
Best regards.