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

[Motorola One] [AOSP 10 V202] (Deen) bluetooth media broken #857

Open
Orlando2434 opened this issue Nov 6, 2019 · 15 comments
Open

[Motorola One] [AOSP 10 V202] (Deen) bluetooth media broken #857

Orlando2434 opened this issue Nov 6, 2019 · 15 comments

Comments

@Orlando2434
Copy link

Bluetooth devices connect successfully, but do not play audio of any kind; It also seems to "hinder" the reproduction of video and music, starting and pausing while playing.
logsmediadeen.txt

@phhusson
Copy link
Owner

phhusson commented Nov 6, 2019 via email

@Orlando2434
Copy link
Author

Audio in general works with the fixes you gave me, but Bluetooth media don't

@phhusson
Copy link
Owner

phhusson commented Nov 6, 2019

uh yeah sorry

@phhusson phhusson changed the title [AOSP 10 V202] Motorola One (Deen) bluetooth media broken [Motorola One] [AOSP 10 V202] (Deen) bluetooth media broken Nov 11, 2019
@phhusson
Copy link
Owner

11-06 09:37:36.305 18754 18789 W AudioFlinger: no wake lock to update, system not ready yet
11-06 09:37:36.307 18754 18789 F StreamHalLocal: Local streams can not have effects
11-06 09:37:36.308 18754 18789 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18789 (AudioOut_2D), pid 18754 (audioserver)
11-06 09:37:36.314 18754 18764 E APM_AudioPolicyManager: setVolumeIndexForAttributes failed to set curve index for group 6 device 0x0

@IkerST
Copy link

IkerST commented Nov 19, 2019

Same error(in logcat) happens on g6 play (aljeter), before v204 Bluetooth worked but speaker and microphone

@phhusson
Copy link
Owner

Oh that's interesting, thanks.
Please give.your /vendor/etc/audio_policy_configuration.xml; and logcat on boot

@IkerST
Copy link

IkerST commented Nov 21, 2019

Here its:
logcat
audio_policy_configuration.xml

@Orlando2434
Copy link
Author

Oh that's interesting, thanks.
Please give.your /vendor/etc/audio_policy_configuration.xml; and logcat on boot

Do you already have a fix for this bt media error? Or do you need more files and logs? Let me know please, I can test if you need it

@Dunedan
Copy link

Dunedan commented Feb 15, 2020

Same issue on Motorola Moto G7 Play running AOSP 10.0 v210.

@phhusson
Copy link
Owner

K, it's just audio effects broken as usual.

I need to remember and test the whole audio effects mess, but in the meantime you can use this temporary fix:

adb root
adb shell setprop ro.audio.ignore_effects true
adb shell pkill -9 audioserver

(This is temporary until next reboot)

Dunedan added a commit to Dunedan/device_phh_treble that referenced this issue Mar 7, 2020
This disables audio effects for the Motorola Moto G7 Play (channel) as
enabled audio effects break audio via Bluetooth.

It requires a separate if-statement in rw-system.sh, because
ro.vendor.build.fingerprint isn't set for the device.

Relates to: phhusson/treble_experimentations#857
Dunedan added a commit to Dunedan/device_phh_treble that referenced this issue Mar 7, 2020
This disables audio effects for the Motorola Moto G7 Play (channel) as
enabled audio effects break audio via Bluetooth.

It requires a separate if-statement in `rw-system.sh`, because
`ro.vendor.build.fingerprint` isn't set for the device.

Relates to: phhusson/treble_experimentations#857
Dunedan added a commit to Dunedan/device_phh_treble that referenced this issue Mar 7, 2020
This disables audio effects for the Motorola Moto G7 Play (channel) as
enabled audio effects break audio via Bluetooth.

It requires a separate if-statement in `rw-system.sh`, because
`ro.vendor.build.fingerprint` isn't set for the device.

Relates to: phhusson/treble_experimentations#857
@grasbauer
Copy link

If I understand right from logcat: the process crashes because of 'Local streams can not have effects'
possible fix for Motorola G7 play in /vendor/etc/audio_effects.conf commenting

<!--effectProxy name="music_helper" library="proxy" uuid="00905020-4e52-11e4-83aa-0002a5d5c51b">
            <libsw library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ab"/>
            <libhw library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01b0"/>
</effectProxy-->

not having equalizer for bluetooth is not a good fix

@100Daisy
Copy link

bumb issue still not fixed for Motorola One

@phhusson
Copy link
Owner

phhusson commented May 26, 2020

On v217, set persist.sys.phh.disable_a2dp_offload to true, reboot, and see if it works media bluetooth.

Also tick "disable audio effects" in treble settings

@100Daisy
Copy link

Audio was on my bt audio device for a sec then circle on youtube website just rolls, sometimes move on a bit but without audio

Logs: https://del.dog/avoqucynuy

@Orlando2434
Copy link
Author

Orlando2434 commented Jun 5, 2020

@phhusson Hi, I am testing the V219 Gapps version, this time with the A10 vendor. Maybe you will have more luck solving all the audio related problems with this vendor.

I'm sharing with you 5 logs I took:

  • The first I took with "disable audio effects" selected in treble settings and with "force-disable A2DP offload". I took this during boot.
  • The second one without any modification. I took this during boot too.
  • The third I took a little before making the call and until after I finished it.
  • I took the fourth while selecting the ringtone and while increasing the volume on the sound screen.
  • The last one i took was trying to use the microphone with the google assistant.

Problems in V219 with the A10 Vendor:

  1. General audio does not work. (maybe audio_policy.xml again)
  2. There is no audio during calls.
  3. Nfc broken (there is something in the logs about that, but no idea how to fix it)
  4. Broken microphone

Things that do work: (Practically everything and without the need for overlays, unlike A9 vendor we do need)
Notch, auto brightness, ril, gesture navigation, camera, Wifi, fingerprint, etc, etc. All that things works.

I hope you can help us, the development of our device is a bit stagnant, and this is the closest we have to a functional custom rom.

Best regards.

logs.txt
logs2.txt
logsduringcall.txt
logselectingringtone.txt
logsmicrophone.txt

sooti pushed a commit to aosp-tissot/device_phh_treble that referenced this issue Jul 4, 2020
This disables audio effects for the Motorola Moto G7 Play (channel) as
enabled audio effects break audio via Bluetooth.

It requires a separate if-statement in `rw-system.sh`, because
`ro.vendor.build.fingerprint` isn't set for the device.

Relates to: phhusson/treble_experimentations#857
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

6 participants