AnsweredAssumed Answered

BCM4356 bluetooth HFP audio is not working with IMX8 Android Pie

Question asked by vinothkumar s on Mar 30, 2020
Latest reply on Mar 31, 2020 by vinothkumar s

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 Alikapati

Abdul Redwan

Outcomes