iMX8QM Android Automotive OS 10 WM8960 Audio Routing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8QM Android Automotive OS 10 WM8960 Audio Routing

600 Views
cbl
Contributor V

Hello,

By modifying the wm8960_config.json file as follows MUSIC_CONTEXT, NAVIGATION_CONTEXT, VOICE_COMMAND_CONTEXT, CALL_RING_CONTEXT, CALL_CONTEXT
I was able to route their sounds to the wm8960 sound card and I could hear these sounds with headphones on the jack on my iMX8QM EVK board.

{
  "driver_name": "wm8960-audio",
  "bus_name": "bus0_media_out",
  "supported_out_devices": ["speaker", "wired_headphone", "wired_headset", "bus"],
  "supported_in_devices": ["wired_headset"],

  "init_ctl": [
    {"name": "Left Output Mixer PCM Playback Switch", "type": "int", "val": 1},
    {"name": "Right Output Mixer PCM Playback Switch", "type": "int", "val": 1},
    {"name": "Playback Volume", "type": "int", "val": 230},
    {"name": "Speaker Playback Volume", "type": "int", "val": 120},
    {"name": "Headphone Playback Volume", "type": "int", "val": 120}
  ],

  "headset_mic_ctl": [
    {"name": "ALC Function", "type": "int", "val": 3},
    {"name": "Left Input Mixer Boost Switch", "type": "int", "val": 1},
    {"name": "ADC PCM Capture Volume", "type": "int", "val": 230},
    {"name": "Capture Volume", "type": "int", "val": 60}
  ],

  "out_volume_ctl": [
    "Playback Volume"
  ]
}

However, I want to route ALARM_CONTEXT, NOTIFICATION_CONTEXT, SYSTEM_SOUND_CONTEXT to the wm8960 sound card.

To do this, I updated the elements of the array in the AudioControl.cpp source file. I built my Image.

static int sContextToBusMap[] = {
    -1,     // INVALID
     0,     // MUSIC_CONTEXT
     0,     // NAVIGATION_CONTEXT
     0,     // VOICE_COMMAND_CONTEXT
     0,     // CALL_RING_CONTEXT
     0,     // CALL_CONTEXT
     0,     // ALARM_CONTEXT
     0,     // NOTIFICATION_CONTEXT
     0,     // SYSTEM_SOUND_CONTEXT
};

However, after Image stood up, it was shut down with the message "Shutting Down".

What steps do I need to follow to route ALARM_CONTEXT, NOTIFICATION_CONTEXT, SYSTEM_SOUND_CONTEXT to my wm8960 sound card?

Could you please help me with this issue?

Best regards,

Efecan

0 Kudos
Reply
2 Replies

570 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @cbl ,

I hope you are doing well.

Kindly Share the console logs as well as the dmesg logs to debug the issue further.

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply

552 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @[Efecan Cebel]​ 

 

I hope you are doing well.

Any Updates from your side?

 

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply