BT calling audio not heard in iMX8MQ-EVK Board configured for AAOS-11

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

BT calling audio not heard in iMX8MQ-EVK Board configured for AAOS-11

4,113件の閲覧回数
aniruthvk
Contributor I

Dear NXP,

 

Hardware: iMX8mq-evk

Software: Android Automotive OS-11.0.0_1.0.0

I have been working on Bluetooth calling on my i.MX8MQ-EVK board with Android 11 configured for automotive. I am able to connect my phone to the device and contacts fetched (PBAP) successfully.

Currently we have 2 audio devices configured and are working as expected:

1. imx-audio-hdmi (Audio for multimedia, for e.g., music, navigation, call etc)

2. wm8524 (For alerts, notification and warning)

In this scenario, when a BT call is made, we are able to hear ringtone. But when we connect the call, voice from the other end is not heard from HDMI or wm8524 bus.

Please advice what change I have to make to enable audio for Bluetooth call so that I can hear the voice during a call. Please find the attached audio routing conf, audio policy, dmesg, adb logs.

audio_policy_configuration.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (C) 2017 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<globalConfiguration speaker_drc_enabled="true"/>

<modules>
<module name="primary" halVersion="2.0">
<attachedDevices>
<item>Speaker</item>
<item>Built-In Mic</item>
</attachedDevices>
<defaultOutputDevice>Speaker</defaultOutputDevice>
<mixPorts>
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="hdmi output" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="32000,44100,48000,88200,96000,176400,192000" channelMasks="AUDIO_CHANNEL_NONE"/>
</mixPort>
<mixPort name="esai output" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000,96000,192000,384000,768000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
</mixPort>
<mixPort name="dsd output" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD">
<profile name="" format="AUDIO_FORMAT_DSD"
samplingRates="2822400,5644800,11289600,22579200" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="bt sco output" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>

<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,11025,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>
<devicePorts>
<devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink" >
</devicePort>
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
</devicePort>
<devicePort tagName="HDMI Out" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
</devicePort>
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
</devicePort>
<devicePort tagName="BT SCO CarKit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
</devicePort>
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
</devicePort>

<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
</devicePort>
<devicePort tagName="Spdif-In" type="AUDIO_DEVICE_IN_AUX_DIGITAL" role="source">
</devicePort>
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
</devicePort>
</devicePorts>
<routes>
<route type="mix" sink="Speaker"
sources="primary output"/>
<route type="mix" sink="Wired Headphones"
sources="dsd output,esai output,primary output"/>
<route type="mix" sink="HDMI Out"
sources="hdmi output,primary output"/>
<route type="mix" sink="BT SCO Headset"
sources="bt sco output"/>
<route type="mix" sink="BT SCO CarKit"
sources="bt sco output"/>
<route type="mix" sink="BT SCO"
sources="bt sco output"/>

<route type="mix" sink="primary input"
sources="Built-In Mic,Spdif-In,BT SCO Headset Mic"/>
</routes>
</module>

<!-- A2dp Audio HAL -->
<xi:include href="a2dp_audio_policy_configuration.xml"/>

<!-- Usb Audio HAL -->
<xi:include href="usb_audio_policy_configuration.xml"/>

<!-- Remote Submix Audio HAL -->
<xi:include href="r_submix_audio_policy_configuration.xml"/>

</modules>

<!-- Volume section -->
<xi:include href="audio_policy_volumes.xml"/>
<xi:include href="default_volume_tables.xml"/>

</audioPolicyConfiguration>

car_audio_configuration.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 The Android Open Source Project
Copyright 2020 NXP

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<carAudioConfiguration version="2">
<zones>
<zone name="primary zone" isPrimary="true" occupantZoneId="0">
<volumeGroups>
<group>
<device address="Speaker">
<context context="music"/>
<context context="navigation"/>
<context context="voice_command"/>
<context context="call_ring"/>
<context context="call"/>
</device>
</group>
<group>
<device address="HDMI Out">
<context context="alarm"/>
<context context="notification"/>
<context context="system_sound"/>
<context context="emergency"/>
<context context="safety"/>
<context context="vehicle_status"/>
<context context="announcement"/>
</device>
</group>
</volumeGroups>
</zone>
</zones>
</carAudioConfiguration>

iMX8M 

Best regards

AVK

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

4,078件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @aniruthvk 

Have you follow the 8.2.1 Routing audio stream to different sound cards in User Guide?

Regards

Qmiller.

0 件の賞賛
返信

4,092件の閲覧回数
Jose1985
Contributor IV

Hi @vinothkumars ,

Do you have experience in such issues?

Best regards

LJ

 

 

0 件の賞賛
返信

4,091件の閲覧回数
vinothkumars
Senior Contributor IV
Hi,

In this we needs to re-route the audio codec for CALL in audio-hal layer

Regards,
Vinothkumar Sekar
0 件の賞賛
返信

4,097件の閲覧回数
Jose1985
Contributor IV

Dear @aniruthvk ,

I am also facing similar issues like you. Please let me know if you find a solution.

Best regards

LJ

0 件の賞賛
返信