Audio route for HFP in IMX8QM-MEK for Android Automotive

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

Audio route for HFP in IMX8QM-MEK for Android Automotive

1,771 Views
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 Kudos
5 Replies

1,752 Views
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 Kudos

1,746 Views
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 Kudos

1,738 Views
igorpadykov
NXP Employee
NXP Employee

for HFP may be useful:

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

 

Best regards
igor

0 Kudos

1,728 Views
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 Kudos

1,692 Views
vinothkumars
Senior Contributor IV

Hi,

 

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

Regards,
Vinothkumar Sekar
0 Kudos