Audio route for HFP in IMX8QM-MEK for Android Automotive

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Audio route for HFP in IMX8QM-MEK for Android Automotive

1,614 次查看
vinothkumars
Senior Contributor IV

Dear NXP,

 

I working on WM8960 audio codec for HFP. But, mic is working fine. But, not able to get voice in wired headset while in call.

 

By default output device in call,

       audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 1

Why it's take xtor audio for HFP ?

 

Thanks & Regards,

Regards,
Vinothkumar Sekar
0 项奖励
5 回复数

1,595 次查看
igorpadykov
NXP Employee
NXP Employee

Hi vinothkumars

 

you are right, fsl,imx-audio-xtor driver is used for sending audio data through

PCM/I2S interface to bluetooth chip:

https://git.isee.biz/linux-kernel/linux-imx/commit/f956a5fd9b0c100a801c542c2ce00dd32b8b97df?view=par...

It is dummy audio driver, similar to "simple-audio-card".

 

Best regards
igor

0 项奖励

1,589 次查看
vinothkumars
Senior Contributor IV

Thank you igorpadykov for the reply.

 

Shell I use this patch https://git.isee.biz/linux-kernel/linux-imx/commit/f956a5fd9b0c100a801c542c2ce00dd32b8b97df?view=par...  ?

 

source/vendor/nxp-opensource/imx/alsa/tinyalsa_hal.c

Why here routed to Earpiece while in call

if (adev->out_device == AUDIO_DEVICE_OUT_SPEAKER)

        adev->out_device = AUDIO_DEVICE_OUT_EARPIECE;

 

Regards,

Regards,
Vinothkumar Sekar
0 项奖励

1,581 次查看
igorpadykov
NXP Employee
NXP Employee

for HFP may be useful:

https://community.cypress.com/thread/7520?start=0&tstart=0

 

Best regards
igor

0 项奖励

1,571 次查看
vinothkumars
Senior Contributor IV

Thank you Igor for the reply.

Will you please give some info why here routed to output device as Earpiece.

 

source/vendor/nxp-opensource/imx/alsa/tinyalsa_hal.c

Why here routed to Earpiece while in call

if (adev->out_device == AUDIO_DEVICE_OUT_SPEAKER)

        adev->out_device = AUDIO_DEVICE_OUT_EARPIECE;

 

audio_hw_primary: adev_open_output_stream: enter: sample_rate(48000) channel_mask(0x3) format(0x1) devices(0x1000000) flags(0x2), address(bus1_system_sound_out)

 

and also please let me know why output device always devices(0x1000000)

 

 

Regards,

Regards,
Vinothkumar Sekar
0 项奖励

1,535 次查看
vinothkumars
Senior Contributor IV

Hi,

 

Will you please tell which card (WM8960 or CS422888) used for HFP by default

Regards,
Vinothkumar Sekar
0 项奖励