AnsweredAssumed Answered

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

Question asked by guohn on Jun 15, 2015
Latest reply on Jun 24, 2015 by igorpadykov

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()

Outcomes