Hello community,
All of three releases of Android Automotive 12 for i.MX 8 cannot play any sound.
The same board is confirmed working when running an Android Automotive 13 image.
The audio jack is connected to a pair of speakers, and the kitchen sink app is used to play sound. I also tried with an YouTube video.
Here are related errors from logcat
11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I start_output_stream: primary: 1, out: 0xe6042d70, device: 16777216, address: bus0_media_out, mode: 0, flags 0x2
11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I select_output_device(), headphone 0 ,headset 0 ,speaker 2
11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E Failed to find card from bus 'bus0_media_out'
11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service D start_output_stream: pcm_open: card: -1, pcm_device_id: 0, rate: 48000, channel: 2, format: 0, period_size: 0xc0, flag: 9
11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E start_output_stream: Invalid PCM card id: -1Full log export from Android Studio's logcat is attached. The .logcat file can be used to import to Android Studio for better viewing.
I am able to confirm audio from the audio jack via kitchen sink app -> volume test. In the app, I only hear audio when testing bus #1.
It looks like I am supposed to modify tags in device code if I want to route all audio to the audio jack.
I have read more about audio on this thread.
It looks like it is the way to go if I want to route all audio to the audio jack.
This is weird and luckily this behavior does not exist in newer Android releases.