Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Xiaomi Mi 6X] Bluetooth headset muted when calling (via Bluetooth HFP). #177

Closed
suwakowww opened this issue Sep 6, 2018 · 5 comments
Closed

Comments

@suwakowww
Copy link

Hello,
this bug is similar to #136 .
Version: AOSP v22 and later, early versions are untested.
Base ROM: MIUI 8.7.26 (Dev)
When calling, it will be muted and speak from built-in speaker automatically, regardless of the speaker setting you used. Also, the mic of headset can't use, either.
But I can hear ringing tones from my headset when I have incoming calls.

Here is the questionable logs what I seems (from line 458 to line 476, but I'm not sure due to the log file is too big.):

09-05 18:08:18.088  2415  2415 I bt_stack: [INFO:avrcp_service.cc(342)] virtual void bluetooth::avrcp::AvrcpService::SendMediaUpdate(bool, bool, bool) track_changed=1 :  play_state=1 :  queue=1
09-05 18:08:18.088  2415  2927 W bt_stack: [WARNING:device.cc(1149)] Device is not registered for now playing updates
09-05 18:08:18.088  2415  2927 I bt_stack: [INFO:device.cc(1182)] 14:43:19:80:23:a6 : HandlePlayPosUpdate
09-05 18:08:18.088  2415  2927 W bt_stack: [WARNING:device.cc(1124)] Device is not registered for track changed updates
09-05 18:08:18.088  2415  2596 D NewAvrcpTargetJni: getCurrentPlayStatus
09-05 18:08:18.088  2415  2596 D NewAvrcpNativeInterface: getPlayStatus
09-05 18:08:18.090  2415  2596 D NewAvrcpTargetJni: getCurrentPlayStatus
09-05 18:08:18.090  2415  2596 D NewAvrcpNativeInterface: getPlayStatus
09-05 18:08:18.092  1403  1403 V GpsNetInitiatedHandler: ACTION_NEW_OUTGOING_CALL - false
09-05 18:08:18.094  1403  1403 I AudioService: setBluetoothScoOnInt: true setBluetoothScoOn(true) from u/pid:1000/1403
09-05 18:08:18.096  1403  1403 W AudioService: setBluetoothScoOnInt(true) failed because null is not in audio connected mode
09-05 18:08:18.097  1403  1403 I Telecom : BluetoothStateReceiver: Device 14:43:19:80:23:A6 transitioned to audio state 12: BSR.oR@Dbg
09-05 18:08:18.097  1403  2599 I Telecom : BluetoothRouteManager: Message received: HFP_IS_ON.: BSR.oR->BRM.pM_200@Dbg
09-05 18:08:18.098  1403  2599 W Telecom : BluetoothRouteManager: HFP audio unexpectedly turned on from device 14:43:19:80:23:A6: BSR.oR->BRM.pM_200@Dbg
09-05 18:08:18.098  1403  2615 I Telecom : CallAudioRouteStateMachine: Message received: BT_AUDIO_CONNECTED=1302, arg1=0: BSR.oR->BRM.pM_200->CARSM.pM_BT_AUDIO_CONNECTED@Dbg
09-05 18:08:18.098  1403  2615 I Telecom : QuiescentBluetoothRoute: Processing message BT_AUDIO_CONNECTED: BSR.oR->BRM.pM_200->CARSM.pM_BT_AUDIO_CONNECTED@Dbg
09-05 18:08:18.098  1403  2615 I Telecom : Event: RecordEntry TC@5: AUDIO_ROUTE, Leaving state QuiescentBluetoothRoute: BSR.oR->BRM.pM_200->CARSM.pM_BT_AUDIO_CONNECTED@Dbg
09-05 18:08:18.098  1403  2615 I Telecom : Event: RecordEntry TC@5: AUDIO_ROUTE, Entering state ActiveBluetoothRoute: BSR.oR->BRM.pM_200->CARSM.pM_BT_AUDIO_CONNECTED@Dbg
09-05 18:08:18.099  2415  2934 W Avrcp   : playState object null, sending STOPPED

Full logfile here (from dialing call to hanging up):
calling.log

@adityawibisana
Copy link

adityawibisana commented Nov 28, 2018

Hi, I am also having this issue. Basically, unable to record via BT headset. Happened only on Xiaomi Device though. Other phone, same app, no problem

@penn5
Copy link

penn5 commented Jul 31, 2019

Resolved in next release (probably)

@adityawibisana
Copy link

adityawibisana commented Aug 2, 2019

@penn5 : Actually it is Oreo problem. Samsung with Oreo, has this problem too. My workaround to record via BT headset is to play audio during recording. This somehow fix our problem. Older Android (< Oreo) does NOT have this problem

@penn5
Copy link

penn5 commented Aug 2, 2019

I know the issue isn't present before Oreo. But it's still there in pie.

@suwakowww
Copy link
Author

Tested and confirmed on dipper with AOSP v117.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants