-
Notifications
You must be signed in to change notification settings - Fork 46
Correct audio_policy_configuration.xml #57
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
Comments
No idea as to how to get 24/192 working properly. The support should be in kernel and we are using the stock audio hal, so everything should be in place. Maybe we are lacking some kind of prop? As for the audio_policy_configuration.xml file, that is directly from stock with just some minor modifications, which you can check in the history. The file is identical across all devices. |
It should all be in the
If I compare https://github.com/whatawurst/android_device_sony_yoshino-common/blob/bda77a1cf0fbda2c1ee70002986fe965b4b9feb9/config/audio_policy/audio_output_policy.conf and https://github.com/whatawurst/android_device_sony_yoshino-common/blob/bda77a1cf0fbda2c1ee70002986fe965b4b9feb9/config/audio_policy/audio_policy_configuration.xml it seems to be indeed a "correct translation". On my experiments with PowerAmp and that XML file I found that adding the 24bit 192kHz format to the deepbuffer was required. Not sure why. I'll hopefully get a test phone in the next couple days or weeks. Then I can test if it even works on stock XZ1C/lilac. |
I have just extracted the file from G8441_Vodafone DE_47.2.A.11.228-R4C firmware and compared it to our current file: There is more than just "minor" modifications. E.g. having "Earpiece" and "FM Tuner" in the attached devices list and many new routes. So I guess mostly this commit: ce75be1#diff-79534e6aad8e786df2c39afb15e669d04bbe292a4bff7804146a4da50135d4b6 Also comparing the conf file vs the XML file from stock I see 192kHz in the conf but not in the XML:
Pretty strange as if Sony forgot about that... |
Some more input: Stock XZ1C supports 24/192 output.
BTW: Any reason we don't use the source-build audio module but copy it from the stock rom? |
Wow... I think I found the issue: Under accessibility services "Mono-Audio" is enabled by default. --> Boom, we run into the 16Bit@48kHz config of that: android_device_sony_yoshino-common/config/audio_policy/audio_policy_configuration.xml Lines 77 to 78 in 8caad0b
Instead of android_device_sony_yoshino-common/config/audio_policy/audio_policy_configuration.xml Lines 94 to 96 in 8caad0b
Not sure why the default is Mono-Audio and why deep-buffer doesn't support the high-res output. I'd expect that for Mono it can simply downmix the stereo to mono keeping the original quality... BTW: Not fully sure why all the compressed formats were removed with 0199389 and 62a5376#diff-79534e6aad8e786df2c39afb15e669d04bbe292a4bff7804146a4da50135d4b6 |
A user noted that e.g. the lilac phone supports 24bit 192kHz audio output but not on our LOS ROMs: https://forum.xda-developers.com/t/rom-lineageos-17-1-18-1-unofficial-update-2021-09-18.4308295/page-11#post-85879703
So far I found the
audio_policy_configuration.xml
to be responsible for that. Android 9 had the audio*.conf files while Android 10+ has theaudio_policy_configuration.xml
, so I'd guess something went wrong in the "translation"@cryptomilk @derfelot How was
audio_policy_configuration.xml
created exactly? And shouldn't that be a device specific file instead of yoshino-common?With some experiments I was able to get 24/192 output working: https://forum.xda-developers.com/t/rom-lineageos-17-1-18-1-unofficial-update-2021-09-18.4308295/post-85905893 But basically just pure Trial&error. This is the file I'm using:
audio_policy_configuration.xml.txt
Any input/ideas here?
The text was updated successfully, but these errors were encountered: