Edited by jonsmirl at 2018-7-25 05:32 \n\n
Older cars use AOA mode -- Android Open Accessory 2.0 -- for audio.
https://source.android.com/devices/accessories/aoa2
List of some hardware using this mode,,,
https://www.crutchfield.com/S-MD ... ry-app-control.html
You can test this mode using Linux Deskop. Look in this thread, I posted detailed instructions on how to reproduce the error without needing to buy a car headend unit.
http://community.umidigi.com/for ... 7283&extra=page%3D1
Also, Android docking stations also use AOA 2.0 mode when they have a speaker inside.
This bug seems to be specific to the MT6739 A1, I also have a MT6737 based Noka 1 which uses the same source code base from Mediatek and it works fine in AOA mode.
From the Google developer page...
That app I linked in the other post will send this 'SET_AUDIO_MODE' USB packet to enable audio output.
Audio support
AOAv2 includes support for audio output from an Android device to an accessory via a standard USB audio class interface capable of 2 channel, 16-bit PCM audio with a bit rate of 44100 Khz (additional audio modes may be added in the future). To enable audio support, the accessory must send a new USB control request:
**SET_AUDIO_MODE** requestType: USB_DIR_OUT | USB_TYPE_VENDOR
request: 58
value: 0 for no audio (default),
1 for 2 channel, 16-bit PCM at 44100 KHz
index: 0
data none
This command must be sent before sending the ACCESSORY_START command for entering accessory mode.
|