Dear All,
I am working on bcm4356 with imx8 android automotive. A2DP profile is working fine. But, when I try bluetooth call hfp enabled properly but, unable to get any sound.
A2DP profile is working with Speaker ? But, same setup is not working for HFP.
Do, I needs to do any configuration ?
Please find log,
audio_hw_primary: start_output_stream_primary... 0xe7551000, device 16777216, address bus0_media_out, mode 0
Line 4311: 03-27 05:44:48.352 1829 4482 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
Line 4312: 03-27 05:44:48.377 1829 4482 W audio_hw_primary: card 0, port 0 device 0x1000000
Line 4313: 03-27 05:44:48.377 1829 4482 W audio_hw_primary: rate 48000, channel 2 period_size 0xc0
Line 4489: 03-27 05:45:01.094 1829 4482 W audio_hw_primary: ret -32, pcm write 768 error wait error: hw 0x94700 app 0x94c80 avail 0x80
Line 4490: 03-27 05:45:01.094 1829 4482 W audio_hw_primary: : Broken pipe
Line 5734: 03-27 05:45:42.589 1829 3601 I audio_hw_primary: adev_set_mode mode 1
Line 5735: 03-27 05:45:42.589 1829 3601 W audio_hw_primary: Leaving IN_CALL state, in_call=0, mode=1
Line 5776: 03-27 05:45:45.344 1829 3601 W audio_hw_primary: do_out_standby... 0xe7551000
Line 6000: 03-27 05:45:52.568 1829 3601 I audio_hw_primary: adev_set_mode mode 2
Line 6001: 03-27 05:45:52.568 1829 3601 W audio_hw_primary: Entering IN_CALL state, in_call=0
Line 6002: 03-27 05:45:52.568 1829 3601 W audio_hw_primary: no standby
Line 6003: 03-27 05:45:52.568 1829 3601 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 1,
Line 6005: 03-27 05:45:52.570 1829 1829 D audio_hw_primary: out_set_parameters: enter: kvpairs: bus0_media_out=;routing=16777216
Line 6006: 03-27 05:45:52.570 1829 1829 D audio_hw_primary: out_set_parameters: exit: code(0)
Line 6009: 03-27 05:45:52.574 1829 3601 D audio_hw_primary: out_set_parameters: enter: kvpairs: bus0_media_out=;routing=16777216
Line 6010: 03-27 05:45:52.574 1829 3601 D audio_hw_primary: out_set_parameters: exit: code(0)
Line 6099: 03-27 05:45:52.751 1829 3601 D audio_hw_primary: adev_set_parameters: enter: hfp_set_sampling_rate=8000
Line 6100: 03-27 05:45:52.751 1829 3601 I audio_hw_primary: hfp_set_sampling_rate, 8000
Line 6101: 03-27 05:45:52.751 1829 3601 D audio_hw_primary: adev_set_parameters: exit with code(0)
Line 6102: 03-27 05:45:52.752 1829 3601 D audio_hw_primary: adev_set_parameters: enter: hfp_enable=true
Line 6103: 03-27 05:45:52.752 1829 3601 I audio_hw_primary: prepare bt rx task
Line 6104: 03-27 05:45:52.752 1829 3601 D audio_hw_primary: get_card_for_name: name: bt-sai-audio, card: 2
Line 6105: 03-27 05:45:52.752 1829 3601 I audio_hw_primary: set pcm_config_sco_in.period_size to 32
Line 6106: 03-27 05:45:52.752 1829 3601 I audio_hw_primary: open sco for read, card 2, port 0
Line 6107: 03-27 05:45:52.752 1829 3601 I audio_hw_primary: rate 8000, channel 2, period_size 0x20, period_count 8
Line 6108: 03-27 05:45:52.759 1829 3601 I audio_hw_primary: after pcm open, rate 8000, channel 2, period_size 0x24, period_count 8
Line 6109: 03-27 05:45:52.760 1829 3601 I audio_hw_primary: create_resampler rsmpl_sco_rx, in rate 8000, out rate 48000
Line 6111: 03-27 05:45:52.761 1829 3601 I audio_hw_primary: sco_rx_task create ret 0, tid_sco_rx -429901456
Line 6112: 03-27 05:45:52.761 1829 3601 I audio_hw_primary: prepare bt tx task
Line 6113: 03-27 05:45:52.761 1829 3601 D audio_hw_primary: get_card_for_name: name: bt-sai-audio, card: 2
Line 6114: 03-27 05:45:52.761 1829 3601 I audio_hw_primary: open sco for write, card 2, port 0
Line 6115: 03-27 05:45:52.761 1829 4597 I audio_hw_primary: enter sco_rx_task, pcm_sco_rx frames 36, szie 144
Line 6116: 03-27 05:45:52.761 1829 3601 I audio_hw_primary: rate 8000, channel 2, period_size 0xc0
Line 6117: 03-27 05:45:52.761 1829 4597 I audio_hw_primary: SelectPcm, curDev 0x1000000, standby 1, hdmi pcm 0x0, normal pcm 0x0
Line 6118: 03-27 05:45:52.761 1829 4597 I audio_hw_primary: SelectPcm, primary output is standy, open it
Line 6119: 03-27 05:45:52.761 1829 4597 I audio_hw_primary: start_output_stream_primary... 0xe7551000, device 16777216, address bus0_media_out, mode 2
Line 6120: 03-27 05:45:52.764 1829 3601 W audio_hw_primary: open mic, card 0, port 0
Line 6121: 03-27 05:45:52.764 1829 3601 W audio_hw_primary: rate 48000, channel 2, period_size 0x480
Line 6122: 03-27 05:45:52.783 1829 4597 W audio_hw_primary: card 0, port 0 device 0x1000000
Line 6123: 03-27 05:45:52.783 1829 4597 W audio_hw_primary: rate 48000, channel 2 period_size 0xc0
Line 6124: 03-27 05:45:52.784 1829 3601 I audio_hw_primary: create_resampler rsmpl_sco_tx, in rate 48000, out rate 8000
Line 6126: 03-27 05:45:52.785 1829 3601 I audio_hw_primary: sco_tx_task create ret 0, tid_sco_tx -431490704
Line 6127: 03-27 05:45:52.785 1829 3601 I audio_hw_primary: sco_task_create, ret 0
Line 6128: 03-27 05:45:52.785 1829 4598 I audio_hw_primary: enter sco_tx_task, pcm_cap frames 1152, szie 4608
Line 6129: 03-27 05:45:52.785 1829 3601 D audio_hw_primary: adev_set_parameters: exit with code(0)
Line 6131: 03-27 05:45:52.787 1829 3601 D audio_hw_primary: adev_set_parameters: enter: hfp_volume=11
Line 6132: 03-27 05:45:52.788 1829 3601 D audio_hw_primary: adev_set_parameters: exit with code(0)
Thank You,
Vinoth S,
Babu
I am facing the same issue with Bluetooth HFP audio on PhyBOARD-Pollux with phyCORE-i.MX 8M Plus module
Android 11 OS.
It would be great if you provide a patch so that I can try it at my end. Thanks in advance.
My Email ID:prashantha.haveri@moschip.com.
Hi @shabna_m
No Still I am also facing the same issue.
But, trying to workout the HFP by configuring the ALSA and Application layer. It will work only mic so far. Send your mail id. I will provide the patch and you can try your end.
Hi @vinothkumars ,
I am facing the same issue with Bluetooth HFP audio on iMX8QXP Automotive 11 OS.
It would be great if you provide a patch so that I can try it at my end. Thanks in advance.
My Email ID: avdhut.pandya@volansys.com
We Changed the hfp_set_sampling_rate to 48k. But same noise observed from speaker side.
Here I have some question,
1. Do I needs to update the broadcom firmware on Android 9 Automotive ?
2. Do I needs to do any hardware changes ?
3. Do I needs to do any software changes ?
Thanks & Regards,
Vinoth S,
Hi,
We got some noise from speaker during a call when using a Bluetooth connection.
Do we needs to do any configuration ?
We got some observation from codec side,
Input Sampling Rate - 48k
Output Sampling Rate - 8k
Let me know, Which file do I needs to configure sampling rate ?
Thanks & Regards,
VInoth S,
Hi,
From this log I come to know, trying to connect headset
Telecom : BluetoothRouteManager: getBluetoothAudioConnectedDevice: no headset service available.: (...->CS.crCo->H.CS.crCo->H.CS.crCo.pICR)->CSW.hCCC->CILH.sL->CILH.oQC->ICF.oCFC->CAMSM.pM_2002->CARSM.pM_SWITCH_FOCUS@E-E-ACk
Do we needs to do any configuration for wired speaker ?
Thank You,
VInoth S,