Hello @Sanket_Parekh ,
I too work on IMX8MP on Phytec's Pollux Board,
I am able to successfully bring up Bluetooth on Android 11, the problem i have is i don't have any GSM or sim related module attached to my board. so Hands Free Profile is not working. is there any way that i can add a piece of code to add some dummy in source code and make the HFP work?
when my phone is connected to the board in audio sink mode, once i get a call on my phone it is getting disconnected from board.
from the logs captured i see these errors,
08-30 09:37:45.537 365 428 E audio_hw_primary: cannot open pcm_sco_rx: cannot open device '/dev/snd/pcmC4294967295D0c': No such file or directory
08-30 09:37:45.537 365 428 I audio_h[ 190.397052] rtk_btusb: btchr_close: BT usb char device is closing
w_primary: sco_task_create, ret -[ 190.397258] binder: 543:653 transaction failed 29189/-22, size 116-0 line 3125
and also i have seen telephony related error
08-30 09:37:37.326 687 893 D BluetoothAdapter: 211325372: getState(). Returning ON
08-30 09:37:37.326 543 779 I Telecom : PhoneAccountRegistrar: Phone account ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService}, ***, UserHandle{0
08-30 09:37:37.326 543 779 W Telecom : PhoneAccountRegistrar: Could not find account to enable: ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnectionServic0
08-30 09:37:37.329 543 2114 W Telecom : PhoneAccountRegistrar: Trying to set nonexistent default outgoing ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnect4
08-30 09:37:37.330 2043 2043 D BluetoothHeadsetClient: getCurrentCalls()
08-30 09:37:37.330 2043 2043 D BluetoothAdapter: 71639300: getState(). Returning ON
08-30 09:37:37.330 845 845 D AdaptiveHomepageIcon: Setting background color -3411720
08-30 09:37:37.330 845 845 D BluetoothHeadsetClient: getConnectionState(D0:28:BA:26:5C:CC)
08-30 09:37:37.330 845 845 D BluetoothAdapter: 101494684: getState(). Returning ON
attached complete log
IMX8MPLUS #BLUETOOTH