Hello @Zhiming_Liu,
First, I made the necessary changes in the AudioControl.cpp source file as shown in the Android User Guide.
static int sContextToBusMap[] = {
-1, // INVALID
0, // MUSIC_CONTEXT
0, // NAVIGATION_CONTEXT
1, // VOICE_COMMAND_CONTEXT
1, // CALL_RING_CONTEXT
1, // CALL_CONTEXT
1, // ALARM_CONTEXT
1, // NOTIFICATION_CONTEXT
1, // SYSTEM_SOUND_CONTEXT
};
Afterwards, I couldn't understand how to make a change in the audio_policy_configuration_car.xml file, which is the 2nd step in the document.
In step 3, the config_cs42888.h and wm8960.h header files mentioned in the document are not included in the Android Automotive OS 10 source package.
After these steps, I built the image, but after booting, the system shuts down by saying "Shutting Down" and it does not boot again.
Can you help me with this? I want to route all the sounds in the system to the wm8960 sound card.
Best regards,
Efecan