Magisk-Modules-Alt-Repo / audio-misc-settings

A Magisk module for setting miscellaneous audio configuration values (media audio volume steps (100 steps), raising the resampling quality, disabling the effects framework, etc.)
GNU Affero General Public License v3.0
173 stars 12 forks source link

Broken bluetooth playback #10

Closed innit86 closed 3 months ago

innit86 commented 1 year ago

For some reason this module breaks bluetooth playback on Pixel 7 Pro. Speaker and wired headphones work but not bluetooth. I've tried older versions as well as the newest one and all have this issue.

yzyhk904 commented 1 year ago

My module disables the effect framework itself. But Pixel 7 Pro uses an "immersive_out" mixer (a kind of effector) defined in audio policy configuration files for 3D sound and cannot avoid the mixer for bluetooth devices without replacing the audio configuration files. (However I think your bluetooth device possibly may work if you change its codec to be AAC or SBC)

Disabling the effect framework is the best for hi-fi music replay. So my recommendation is to use my another tool USB_SampleRate_Changer for replacing the policy files. Or if you like convenience, edit "system.prop" (delete "ro.audio.ignore_effects=true" line) in this module zip file and re-install it.

yzyhk904 commented 1 year ago

I released a new version to bypass Pixel 6&7 spatial audio feature. This version automatically overlays a modified bluetooth audio configuration (without spatial audio flags) on its original one.

y6yuan commented 4 months ago

My module disables the effect framework itself. But Pixel 7 Pro uses an "immersive_out" mixer (a kind of effector) defined in audio policy configuration files for 3D sound and cannot avoid the mixer for bluetooth devices without replacing the audio configuration files. (However I think your bluetooth device possibly may work if you change its codec to be AAC or SBC)

Disabling the effect framework is the best for hi-fi music replay. So my recommendation is to use my another tool USB_SampleRate_Changer for replacing the policy files. Or if you like convenience, edit "system.prop" (delete "ro.audio.ignore_effects=true" line) in this module zip file and re-install it.

same issue with v1.3.5 when use apt codex, pixel 7 pro android 14. After change codec to SBC, the bluetooth playback works

yzyhk904 commented 4 months ago

Can you check if there is a line like <mixPort name="a2dp output" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER"/> in` "/vendor/etc/bluetooth_audio_policy_configuration_7_0.xml" ?

This module must replace the line with <mixPort name="a2dp output" role="source" /> if it succeeds.

y6yuan commented 4 months ago

sorry for late after reinstall and checked: the flag AUDIO_OUTPUT_FLAG_SPATIALIZER still exist. Btw, i am using APatch, maybe it's the reason :(

yzyhk904 @.***> 于 2024年1月10日周三 17:59写道:

Can you check if there is a line like <mixPort name="a2dp output" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER"/> in` "/vendor/etc/bluetooth_audio_policy_configuration_7_0.xml" ?

This module must replace the line with if it succeeds.

— Reply to this email directly, view it on GitHub https://github.com/Magisk-Modules-Alt-Repo/audio-misc-settings/issues/10#issuecomment-1884531634, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHTO2V7IKDSSQBFR2UAFTYNZQ6ZAVCNFSM6AAAAAAVBRPR26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGUZTCNRTGQ . You are receiving this because you commented.Message ID: @.*** com>

yzyhk904 commented 4 months ago

Please tell me if you can reproduce this issue by using magisk. I don't have any Pixel 7 Pro.