android_L5.0.0_1.0.0 rtl8723bs bt mic don't work

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

android_L5.0.0_1.0.0 rtl8723bs bt mic don't work

Jump to solution
4,860 Views
guohn
Contributor III

Hi all,

        We use rtl8723bs bt on sabresd_6dq. But mic don't work. please see follow log(pair and use bt to call):

        Who knows what's the problem?

pair bt:

W/AudioTrack(  434): AUDIO_OUTPUT_FLAG_FAST denied by client

W/AudioPolicyManager(  170): releaseOutput() releasing unknown output 14

I/audio_hw_primary(  170): start_output_stream... 1981511424, device 2

W/audio_hw_primary(  170): card 0, port 0 device 0x2

W/audio_hw_primary(  170): rate 44100, channel 2 period_size 0xc0

D/BluetoothHeadset( 2435): connect(1C:52:16:0B:47:44)

D/HeadsetStateMachine( 2498): currentState is Disconnected

D/HeadsetService( 2498): connectionState = 0

D/CachedBluetoothDevice( 2435): Command sent successfully:CONNECT Address:1C:52:16:0B:47:44 Profile:HEADSET

D/BluetoothA2dp( 2435): connect(1C:52:16:0B:47:44)

D/CachedBluetoothDevice( 2435): Command sent successfully:CONNECT Address:1C:52:16:0B:47:44 Profile:A2DP

D/HeadsetStateMachine( 2498): Disconnected process message: 1, size: 0

D/HeadsetStateMachine( 2498): Connection state 1C:52:16:0B:47:44: 0->1

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

I/BluetoothHeadsetServiceJni( 2498): connectHfpNative: sBluetoothHfpInterface: 0x65482abc

D/BluetoothAdapterProperties( 2498): CONNECTION_STATE_CHANGE: 1C:52:16:0B:47:44: 0 -> 1

D/HeadsetStateMachine( 2498): Exit Disconnected: 1

D/HeadsetStateMachine( 2498): Enter Pending: 1

D/CachedBluetoothDevice( 2435): onProfileStateChanged: profile HEADSET newProfileState 1

D/A2dpStateMachine( 2498): Disconnected process message: 1

I/art     (  434): Explicit concurrent mark sweep GC freed 12823(597KB) AllocSpace objects, 2(32KB) LOS objects, 33% free, 11MB/17MB, paused 2.027ms total 151.189ms

I/BluetoothA2dpServiceJni( 2498): connectA2dpNative: sBluetoothA2dpInterface: 0x654829b4

D/A2dpStateMachine( 2498): Exit Disconnected: 1

D/A2dpStateMachine( 2498): Enter Pending: 1

D/A2dpStateMachine( 2498): Connection state 1C:52:16:0B:47:44: 0->1

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

D/CachedBluetoothDevice( 2435): onProfileStateChanged: profile A2DP newProfileState 1

E/bt-l2cap( 2498): l2cu_adjust_out_mps bad packet size: 0  will use MPS: 0

W/bt-btif ( 2498): info:x0

D/        ( 2498): remote version info [1c:52:16:0b:47:44]: 6, a, 21c8

W/bt-sdp  ( 2498): process_service_search_attr_rsp

W/bt-btif ( 2498): new conn_srvc id:5, app_id:0

I/BluetoothHeadsetServiceJni( 2498): connection_state_callback

D/HeadsetStateMachine( 2498): Pending process message: 101, size: 0

D/HeadsetStateMachine( 2498): event type: 1

D/HeadsetStateMachine( 2498): getDeviceForMessage: returning mTargetDevice for what=201

D/HeadsetStateMachine( 2498): remove connect timeout for device = 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processConnectionEvent state = 2, device = 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): device 1C:52:16:0B:47:44 is added in Pending state

D/HeadsetStateMachine( 2498): Connection state 1C:52:16:0B:47:44: 1->2

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/BluetoothAdapterProperties( 2498): CONNECTION_STATE_CHANGE: 1C:52:16:0B:47:44: 1 -> 2

D/CachedBluetoothDevice( 2435): onProfileStateChanged: profile HEADSET newProfileState 2

D/AudioPolicyManager(  170): setDeviceConnectionState() could not find HW module for device 00000020

W/AudioPolicyManager(  170): setDeviceConnectionState(): could not find HW module for device 80000008

W/audio_hw_primary(  170): set parameters bt_headset_name=QY7;bt_headset_nrec=on

E/audio_a2dp_hw(  170): adev_set_parameters: ERROR: set param called even when stream out is null

D/HeadsetStateMachine( 2498): configAudioParameters for device:1C:52:16:0B:47:44 are: nrec = 1

D/HeadsetStateMachine( 2498): Enter Connected: 101, size: 1

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 12event device : 1C:52:16:0B:47:44

I/BluetoothHeadsetServiceJni( 2498): cindResponseNative: sBluetoothHfpInterface: 0x65482abc

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

I/BluetoothHeadsetServiceJni( 2498): connection_state_callback

I/BluetoothA2dpSinkServiceJni( 2498): bta2dp_connection_state_callback

E/bt-btif ( 2498): reset flags

D/A2dpSinkStateMachine( 2498): Disconnected process message: 101

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 1event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processConnectionEvent state = 3, device = 1C:52:16:0B:47:44

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

I/A2dpSinkStateMachine( 2498): Incoming A2DP accepted

I/Telecom (  752): BluetoothPhoneService: queryPhoneState

I/Telecom (  752): BluetoothPhoneService: updateHeadsetWithCallState numActive 0, numHeld 0, callState 6, ringing number [da39a3ee5e6b4b0d3255bfef95601890afd80709], ringing type 128

D/A2dpSinkStateMachine( 2498): Exit Disconnected: 101

D/A2dpSinkStateMachine( 2498): Enter Pending: 101

D/A2dpSinkStateMachine( 2498): Connection state 1C:52:16:0B:47:44: 0->1

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

D/HeadsetStateMachine( 2498): Connected process message: 9, size: 1

D/HeadsetStateMachine( 2498): mNumActive: 0 mNumHeld: 0 mCallState: 6

D/HeadsetStateMachine( 2498): mNumber:  mType: 128

D/HeadsetStateMachine( 2498): terminateScoUsingVirtualVoiceCall: Received

E/HeadsetStateMachine( 2498): terminateScoUsingVirtualVoiceCall:No present call to terminate

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 9event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): NREC value for device :1C:52:16:0B:47:44 is: 0

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 6event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): Connected process message: 7, size: 1

E/bt-btif ( 2498): bta_av_rc_create ACP handle exist for shdl:0

W/bt-btif ( 2498): btif_av_state_opening_handler : unhandled event:BTA_AV_PENDING_EVT

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

W/bt-sdp  ( 2498): process_service_search_attr_rsp

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 15event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processUnknownAt - atString = +XAPL=0000-0000-0100,7

D/HeadsetStateMachine( 2498): processVendorSpecificAt - atString = +XAPL=0000-0000-0100,7

E/HeadsetStateMachine( 2498): processVendorSpecificAt: unsupported command: +XAPL=0000-0000-0100,7

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 15event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processUnknownAt - atString = +IPHONEACCEV=2,1,8,2,0

D/HeadsetStateMachine( 2498): processVendorSpecificAt - atString = +IPHONEACCEV=2,1,8,2,0

E/HeadsetStateMachine( 2498): processVendorSpecificAt: unsupported command: +IPHONEACCEV=2,1,8,2,0

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 15event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processUnknownAt - atString = +XEVENT=foo,8

D/HeadsetStateMachine( 2498): processVendorSpecificAt - atString = +XEVENT=FOO,8

D/HeadsetStateMachine( 2498): broadcastVendorSpecificEventIntent(+XEVENT)

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 14event device : 1C:52:16:0B:47:44

I/Telecom (  752): BluetoothPhoneService: listcurrentCalls

D/HeadsetStateMachine( 2498): Starting CLCC response timeout for device: 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): Connected process message: 12, size: 1

D/HeadsetStateMachine( 2498): getDeviceForMessage: returning 1C:52:16:0B:47:44

E/bt-rfcomm( 2498): PORT_DataInd, p_port:0x6556bb84, p_data_co_callback is null

D/HeadsetStateMachine( 2498): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2498): event type: 15event device : 1C:52:16:0B:47:44

D/HeadsetStateMachine( 2498): processUnknownAt - atString = +CSRSF=0,0,0,1,0,0,0

D/HeadsetStateMachine( 2498): processVendorSpecificAt - atString = +CSRSF=0,0,0,1,0,0,0

E/HeadsetStateMachine( 2498): processVendorSpecificAt: unsupported command: +CSRSF=0,0,0,1,0,0,0

W/audio_hw_primary(  170): do_out_standby... 1981511424

W/bt-btif ( 2498): bta_dm_rm_cbacinput: AVRCP as /devices/virtual/input/input3

k:0, status:0

W/bt-btif ( 2498): new conn_srvc id:18, app_id:0

I/BluetoothA2dpServiceJni( 2498): bta2dp_connection_state_callback

E/bt-btif ( 2498): use_rc:1

D/A2dpStateMachine( 2498): Pending process message: 101

E/bt-btif ( 2498): bta_av_rc_opened rcb[0] shdl:1 lidx:3/0

W/bt-btif ( 2498): blacklist absolute volume for 1c:52:16, name = QY7

I/BluetoothAvrcpServiceJni( 2498): btavrcp_remote_features_callback

D/A2dpStateMachine( 2498): Enter Connected: 101

D/A2dpStateMachine( 2498): Connection state 1C:52:16:0B:47:44: 1->2

D/BluetoothAdapterService( 2498): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@2a94968e

D/A2dpStateMachine( 2498): A2DP Playing state : device: 1C:52:16:0B:47:44 State:10->11

D/CachedBluetoothDevice( 2435): onProfileStateChanged: profile A2DP newProfileState 2

I/audio_a2dp_hw(  170): adev_open_output_stream: opening output

I/audio_a2dp_hw(  170): skt_connect: connect to /data/misc/bluedroid/.a2dp_ctrl (sz 10240)

I/audio_a2dp_hw(  170): skt_connect: connected to stack fd = 17

I/AudioFlinger(  170): HAL output buffer size 2560 frames, normal sink buffer size 2560 frames

I/AudioFlinger(  170): AudioFlinger's thread 0x74022000 ready to run

I/audio_a2dp_hw(  170): out_set_parameters: state 3

I/str_params(  170): key: 'a2dp_sink_address' value: '1C:52:16:0B:47:44'

I/AudioFlinger(  170): HAL output buffer size 2560 frames, normal sink buffer size 2560 frames

D/EventHub(  434): No input device configuration file found for device 'AVRCP'.

I/AudioFlinger(  170): AudioFlinger's thread 0x74063000 ready to run

W/audio_hw_primary(  170): set parameters A2dpSuspended=false

I/audio_a2dp_hw(  170): adev_set_parameters: state 3

I/audio_a2dp_hw(  170): out_set_parameters: state 3

I/str_params(  170): key: 'A2dpSuspended' value: 'false'

W/bt-sdp  ( 2498): process_service_search_attr_rsp

W/bt-btif ( 2498): blacklist absolute volume for 1c:52:16, name = QY7

I/BluetoothAvrcpServiceJni( 2498): btavrcp_remote_features_callback

W/EventHub(  434): Unable to disable kernel key repeat for /dev/input/event2: Function not implemented

I/EventHub(  434): New device: id=4, fd=186, path='/dev/input/event2', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, wakeMechanism=EPOLLWAKEUP, usingClockIoctl=true

I/InputReader(  434): Device added: id=4, name='AVRCP', sources=0x00000101

I/BluetoothAvrcpServiceJni( 2498): btavrcp_register_notification_callback

I/BluetoothAvrcpServiceJni( 2498): registerNotificationRspPlayStatusNative: sBluetoothAvrcpInterface: 0x65482c24

I/BluetoothAvrcpServiceJni( 2498): btavrcp_register_notification_callback

I/BluetoothAvrcpServiceJni( 2498): registerNotificationRspPlayPosNative: sBluetoothAvrcpInterface: 0x65482c24

D/Index   ( 2435): Indexing locale 'en_AU' took 81 millis

D/btif_config_util( 2498): btif_config_save_file(L188): in file name:/data/misc/bluedroid/bt_config.new

W/bt-btif ( 2498): dm_pm_timer expires

W/bt-btif ( 2498): dm_pm_timer expires 0

W/bt-btif ( 2498): proc dm_pm_timer expires

use bt to call:

W/AudioTrack(  434): AUDIO_OUTPUT_FLAG_FAST denied by client

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): do_in_standby..

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): ret -32, pcm write 768 error wait error: hw 0x8ff40 app 0x90540 avail 0x0

W/audio_hw_primary(  170): : Unknown error -32

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/AudioRecord( 1908): AUDIO_INPUT_FLAG_FAST denied by client

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): In channels 1, rate 48000, devices 0x80000004

W/audio_hw_primary(  170): get_input_buffer_size size = 1120, channel_count = 1

W/audio_hw_primary(  170): get_input_buffer_size size = 1120, channel_count = 1

I/AudioFlinger(  170): AudioFlinger's thread 0x740b6000 ready to run

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): out_set_parameters routing=2, ret 0, out 1981511424

W/audio_hw_primary(  170): in_set_parameters input_source=1;routing=-2147483644, ret 11

V/skype_jni( 1908): jni_CallDevice::SetRoute(0_2)

V/skype_jni( 1908): jni_CallDevice::UseRoute(0_2) done 0

W/audio_hw_primary(  170): start_input_stream....

W/audio_hw_primary(  170): card 0, port 0 device 0x4

W/audio_hw_primary(  170): rate 44100, channel 2 format 0, period_size 0x400

V/skype_jni( 1908): jni_CallDevice::SetRoute(1_2)

V/skype_jni( 1908): jni_CallDevice::UseRoute(1_2) done 0

W/AudioTrack(  434): dead IAudioTrack, PCM, creating a new one from processAudioBuffer()

Labels (2)
0 Kudos
1 Solution
1,671 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shannon

If you want to use HFP and HSP, you need to feed voice to audio codec

like sabresd WM8962. Then through WM8962 rtl8723bs can get this pcm stream.

On sabresd board there is no such path for audio codec (need more pcm rx/tx pin),

so only way was to connect AR6233 using UART to processor. For these reasons

there is no way to support HSP and HSP on sabresd. This is meaning of

"Handset & Handfree(not support for hardware restrict)" mentioned on

How to enable BT on board imx6q_sabresd RevC.

Best regards

igor

View solution in original post

0 Kudos
4 Replies
1,671 Views
guohn
Contributor III

Hi all,

      We use bt record to rec audio. The error log:

                    I/audio_a2dp_hw(  169): start_audio_datapath: state 5

                    E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

I/AudioService( 1398): ===>Call startRecorder

D/AudioService( 1398): ---> stopRecord mode = 0  mMimeType= 0

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'routing' value: '128'

I/str_params(  169): key: 'a2dp_sink_address' value: '1C:48:F9:18:E2:EC'

D/AudioService( 1398): ---> startRecorder mode = 2  mMimeType= 0

W/audio_hw_primary(  169): In channels 1, rate 8000, devices 0x80000004

W/audio_hw_primary(  169): get_input_buffer_size size = 192, channel_count = 1

W/audio_hw_primary(  169): get_input_buffer_size size = 192, channel_count = 1

I/AudioFlinger(  169): AudioFlinger's thread 0x74301000 ready to run

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:7

I/MediaCodecSource(  169): MediaCodecSource (audio) starting

W/audio_hw_primary(  169): in_set_parameters input_source=1;routing=-2147483644, ret 11

I/MediaCodecSource(  169): MediaCodecSource (audio) started

I/AudioService( 1398): ---> startRecorder mCurMode = 2

D/AudioService( 1398): ===> startRecorder isBluetoothA2dpOn = true isBluetoothScoOn  = false

W/audio_hw_primary(  169): start_input_stream....

W/audio_hw_primary(  169): card 0, port 0 device 0x4

W/audio_hw_primary(  169): rate 44100, channel 2 format 0, period_size 0x400

E/bt-btif ( 2033): bta_av_link_role_ok hndl:x41 role:0, conn_audio:x1, bits:1, features:x824b

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:0

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:7

I/BluetoothA2dpServiceJni( 2033): bta2dp_audio_state_callback

I/audio_a2dp_hw(  169): skt_connect: connect to /data/misc/bluedroid/.a2dp_data (sz 10240)

I/audio_a2dp_hw(  169): skt_connect: connected to stack fd = 25

D/A2dpStateMachine( 2033): Connected process message: 101

D/A2dpStateMachine( 2033): A2DP Playing state : device: 1C:48:F9:18:E2:EC State:11->10

W/bt-btif ( 2033): overflow 0, enter 0, exit 0

W/bt-btif ( 2033): pcm bytes per tick 3528

D/BluetoothHeadset(  435): startScoUsingVirtualVoiceCall()

D/HeadsetStateMachine( 2033): currentState = com.android.bluetooth.hfp.HeadsetStateMachine$Connected@27d8d2b

D/HeadsetStateMachine( 2033): Connected process message: binder: 435:435 transaction failed 29189, size 172-0

14, size: 1

D/HeadsetStateMachine( 2033): initiateScoUsingVirtualVoiceCall: Received

D/HeadsetStateMachine( 2033): mNumActive: 0 mNumHeld: 0 mCallState: 2

D/HeadsetStateMachine( 2033): mNumber:  mType: 0

D/HeadsetStateMachine( 2033): mNumActive: 0 mNumHeld: 0 mCallState: 3

D/HeadsetStateMachine( 2033): mNumber:  mType: 0

D/HeadsetStateMachine( 2033): mNumActive: 1 mNumHeld: 0 mCallState: 6

D/HeadsetStateMachine( 2033): mNumber:  mType: 0

D/HeadsetStateMachine( 2033): initiateScoUsingVirtualVoiceCall: Done

D/bt_vendor( 2033): op for 8

D/AudioService( 1398): ===> audio sco state = 0

D/AudioService( 1398): ===> audio sco state = 2

I/audio_a2dp_hw(  169): suspend_audio_datapath: state 1

E/bt-btif ( 2033): bta_av_str_stopped:audio_open_cnt=1, p_data 6ded4ccc

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:6

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:6

I/BluetoothA2dpServiceJni( 2033): bta2dp_audio_state_callback

I/audio_a2dp_hw(  169): skt_disconnect: fd 25

D/A2dpStateMachine( 2033): Connected process message: 101

W/bt-btif ( 2033): overflow 0, enter 0, exit 0

W/bt-btif ( 2033): pcm bytes per tick 3528

D/A2dpStateMachine( 2033): A2DP Playing state : device: 1C:48:F9:18:E2:EC State:10->11

W/bt-btif ( 2033): bta_av_suspend_cfm: already suspended, ignore, err_code 49

D/HeadsetStateMachine( 2033): Connected process message: 101, size: 1

D/HeadsetStateMachine( 2033): event type: 2event device : 1C:48:F9:18:E2:EC

D/HeadsetStateMachine( 2033): Set NREC: 0 for device:1C:48:F9:18:E2:EC

W/audio_hw_primary(  169): set parameters bt_headset_nrec=off

I/audio_a2dp_hw(  169): adev_set_parameters: state 5

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'bt_headset_nrec' value: 'off'

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:1

I/BluetoothA2dpServiceJni( 2033): bta2dp_connection_state_callback

W/audio_hw_primary(  169): set parameters bt_headset_name=JABRA EASYCALL

I/audio_a2dp_hw(  169): adev_set_parameters: state 5

I/audio_a2dp_hw(  169): out_set_parameters: state 5

W/bt-btif ( 2033): overflow 0, enter 0, exit 0

I/str_params(  169): key: 'bt_headset_name' value: 'JABRA EASYCALL'

W/bt-btif ( 2033): pcm bytes per tick 3528

W/bt-btif ( 2033): overflow 0, enter 0, exit 0

W/bt-btif ( 2033): pcm bytes per tick 3528

D/A2dpStateMachine( 2033): Connected process message: 101

D/A2dpStateMachine( 2033): Enter Disconnected: 101

D/HeadsetStateMachine( 2033): Audio state 1C:48:F9:18:E2:EC: 11->12

D/HeadsetStateMachine( 2033): Enter AudioOn: 101, size: 1

D/AudioService( 1398): ===> audio sco state = 1

I/AudioService( 1398): AudioManager.SCO_AUDIO_STATE_CONNECTED

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'routing' value: '128'

I/str_params(  169): key: 'a2dp_sink_address' value: '1C:48:F9:18:E2:EC'

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

W/MediaSessionRecord(  435): Removed dead callback in pushPlaybackStateUpdate.

W/MediaSessionRecord(  435): android.os.DeadObjectException

W/MediaSessionRecord(  435):    at android.os.BinderProxy.transactNative(Native Method)

W/MediaSessionRecord(  435):    at android.os.BinderProxy.transact(Binder.java:496)

W/MediaSessionRecord(  435):    at android.media.session.ISessionControllerCallback$Stub$Proxy.onPlaybackStateChanged(ISessionControllerCallback.java:209)

W/MediaSessionRecord(  435):    at com.android.server.media.MediaSessionRecord.pushPlaybackStateUpdate(MediaSessionRecord.java:478)

W/MediaSessionRecord(  435):    at com.android.server.media.MediaSessionRecord.access$3300(MediaSessionRecord.java:66)

W/MediaSessionRecord(  435):    at com.android.server.media.MediaSessionRecord$MessageHandler.handleMessage(MediaSessionRecord.java:1211)

W/MediaSessionRecord(  435):    at android.os.Handler.dispatchMessage(Handler.java:102)

W/MediaSessionRecord(  435):    at android.os.Looper.loop(Looper.java:135)

W/MediaSessionRecord(  435):    at com.android.server.SystemServer.run(SystemServer.java:269)

W/MediaSessionRecord(  435):    at com.android.server.SystemServer.main(SystemServer.java:170)

W/MediaSessionRecord(  435):    at java.lang.reflect.Method.invoke(Native Method)

W/MediaSessionRecord(  435):    at java.lang.reflect.Method.invoke(Method.java:372)

W/MediaSessionRecord(  435):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)

W/MediaSessionRecord(  435):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

W/AudioTrack(  435): dead IAudioTrack, PCM, creating a new one from processAudioBuffer()

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'routing' value: '128'

I/str_params(  169): key: 'a2dp_sink_address' value: '1C:48:F9:18:E2:EC'

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

W/audio_hw_primary(  169): set parameters 1C:48:F9:18:E2:EC=;disconnect=128

I/audio_a2dp_hw(  169): adev_set_parameters: state 5

I/audio_a2dp_hw(  169): out_set_parameters: state 5

D/A2dpStateMachine( 2033): Connection state 1C:48:F9:18:E2:EC: 2->0

D/BluetoothAdapterService( 2033): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@3eba5f3b

D/AudioService( 1398): ===>BluetoothA2dp state = 0

D/CachedBluetoothDevice( 1335): onProfileStateChanged: profile A2DP newProfileState 0

D/BluetoothHeadset(  435): stopScoUsingVirtualVoiceCall()

D/HeadsetStateMachine( 2033): currentState = com.android.bluetooth.hfp.HeadsetStateMachine$AudioOn@2aba6588

D/HeadsetStateMachine( 2033): AudioOn process message: 15, size: 1

D/HeadsetStateMachine( 2033): terminateScoUsingVirtualVoiceCall: Received

D/HeadsetStateMachine( 2033): mNumActive: 0 mNumHeld: 0 mCallState: 6

D/HeadsetStateMachine( 2033): mNumber:  mType: 0

D/HeadsetStateMachine( 2033): terminateScoUsingVirtualVoiceCall: Done

E/bt_h5  ( 2033): HCI Connection handle(0x3) not found

D/bt_vendor( 2033): op for 8

D/HeadsetStateMachine( 2033): AudioOn process message: 101, size: 1

D/HeadsetStateMachine( 2033): event type: 2

D/HeadsetStateMachine( 2033): terminateScoUsingVirtualVoiceCall: Received

E/HeadsetStateMachine( 2033): terminateScoUsingVirtualVoiceCall:No present call to terminate

D/HeadsetStateMachine( 2033): Audio state 1C:48:F9:18:E2:EC: 12->10

D/HeadsetStateMachine( 2033): Enter Connected: 101, size: 1

I/str_params(  169): key: '1C:48:F9:18:E2:EC' value: ''

I/str_params(  169): key: 'disconnect' value: '128'

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'exiting' value: '1'

W/AudioSystem(  435): ioConfigChanged() closing unknown output! 467

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'routing' value: '0'

I/audio_a2dp_hw(  169): start_audio_datapath: state 5

E/audio_a2dp_hw(  169): start_audio_datapath: audiopath start failed

E/bt-btif ( 2033): reset flags

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:0

W/bt-btif ( 2033): new conn_srvc id:18, app_id:0

W/bt-btif ( 2033): btif_av_state_idle_handler : unhandled event:BTA_AV_OPEN_EVT

E/bt-btif ( 2033): bta_av_link_role_ok hndl:x41 role:0, conn_audio:x1, bits:1, features:x824b

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:0

W/bt-btif ( 2033): bta_dm_rm_cback:1, status:7

W/bt-btif ( 2033): btif_av_state_idle_handler : unhandled event:BTA_AV_START_EVT

I/audio_a2dp_hw(  169): out_set_parameters: state 5

I/str_params(  169): key: 'closing' value: 'true'

I/audio_a2dp_hw(  169): out_set_parameters: state 2

I/str_params(  169): key: 'exiting' value: '1'

W/AudioSystem(  435): ioConfigChanged() closing unknown output! 466

I/audio_a2dp_hw(  169): adev_close_output_stream: closing output (state 2)

I/audio_a2dp_hw(  169): stop_audio_datapath: state 2

I/audio_a2dp_hw(  169): skt_disconnect: fd -1

I/audio_a2dp_hw(  169): skt_disconnect: fd 26

W/bt-sdp  ( 2033): process_service_search_attr_rsp

E/bt-btif ( 2033): handle_rc_connect Connect failed with error code: 2

0 Kudos
1,671 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shannon

seems this is because Handset & Handfree profiles are not supported

(due to MX6 SabreSD hardware restrict as described below)

https://community.freescale.com/docs/DOC-94235

Supported profiles.jpg

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,671 Views
guohn
Contributor III

Hi igorpadykov,

     We use bt is rtl8723bs. It support HSP/HFP. And What do we need to modify can let HSP and HFP work normally?

Best regards

0 Kudos
1,672 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shannon

If you want to use HFP and HSP, you need to feed voice to audio codec

like sabresd WM8962. Then through WM8962 rtl8723bs can get this pcm stream.

On sabresd board there is no such path for audio codec (need more pcm rx/tx pin),

so only way was to connect AR6233 using UART to processor. For these reasons

there is no way to support HSP and HSP on sabresd. This is meaning of

"Handset & Handfree(not support for hardware restrict)" mentioned on

How to enable BT on board imx6q_sabresd RevC.

Best regards

igor

0 Kudos