iMX8QM Android Automotive OS 10 Bluetooth Speaker Audio Problem

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

iMX8QM Android Automotive OS 10 Bluetooth Speaker Audio Problem

2,700 Views
cbl
Contributor V

Hello,

I compiled Android Automotive OS 10_2.4.0 for iMX8QM EVK.

I connected my bluetooth speaker to the system.

But I can't get an audio output from my Bluetooth speaker.

What kind of updates do I need to make in the source package for this.

Could you help me with this issue?

Best regards,
Efecan

 

0 Kudos
Reply
9 Replies

2,661 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cbl,

I hope you are doing well
 
Are you able to get the audio from a wired device i.e audio jack?
It seems that the issue is related to audio routing. Please refer to section 8.2.1 Routing audio stream to different sound cards from the Android ™ User's Guide.
 
Thanks & Regards,
Dhruvit Vasavada

2,658 Views
cbl
Contributor V

Hello @Dhruvit,

Thank you very much. I'm fine. I hope you are well.

I can only receive Alarm and Notification sounds through the jack with wired headphones.

Actually, that's exactly what I want to do. So I want to route all audio to audio jack.

For this, I looked at the section 8.2.1 Routing audio stream to different sound cards in the Android User Guide, but I was not successful.

I'm listing the steps I followed below.

1) I made changes to the AudioControl.cpp file as it says in the docs. The change I made is as follows.

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

I made this change and compiled Android. I flashed the image to my EVK board, but after booting, Android closed by saying "Shutting Down".

Can you tell me where I am wrong?

Which files should I change for the audio routing process?

Do you have a chance to guide me through the steps to be implemented?

Best regards,
Efecan Cebel

 

0 Kudos
Reply

2,610 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cbl,

I hope you are doing well

One can modify audio routing from an audio-hal layer. To select the audio path, kindly refer to the below code.
hardware/imx/alsa/tinyalsa_hal.c.
One can select any of the output streams one wants.
 

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply

2,607 Views
cbl
Contributor V

Hi @Dhruvit,

Where should I change in tinyalsa_hal.cpp to route all audio outputs to wm8960? can you help with this?

Best regards,

Efecan

0 Kudos
Reply

2,580 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cbl,

I hope you are doing well
 
Please find the select_mode() and select_output_device() functions given in tinyalsa_hal.cpp for routing the audio.
 
Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply

2,577 Views
cbl
Contributor V

Hello @Dhruvit,

Thank you very much for your return.

But I don't know how to route all sound to wm8960 sound card in select_input_device() and select_mode() functions.

Can you support me on this?

Best regards,

Efecan

0 Kudos
Reply

2,513 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cbl,

I hope you are doing well.
 
The mentioned file and the APIs can be used to select the input device and output device from the HAL layer.
To control the various path switches inside the codec from the driver, kindly take the reference to the below link.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply

2,501 Views
cbl
Contributor V

Hi @Dhruvit,

Thank you for support.

I will take a look at this document.

Best regards,

Efecan

0 Kudos
Reply

2,450 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cbl,

I hope you are doing well

Are there any updates on this case?
If the issue is resolved should we close the thread?
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply