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

AOSP13 Xperia10V and Xperia10III bad voice on voip/jingle audio/video calls #853

Open
PaoloP79 opened this issue Nov 5, 2024 · 3 comments
Labels

Comments

@PaoloP79
Copy link

PaoloP79 commented Nov 5, 2024

Platform: zambezi, lena
Device: pdx235, pdx213
Kernel version: 5.4.210-qgki-g861b0a36658e, 4.19.248-g92372ee24825
Android version: android-13.0.0_r75
Software binaries version: SW_binaries_for_Xperia_Android_13_5.4_v2b_zambezi, SW_binaries_for_Xperia_Android_13_5.4_v4b_zambezi, SW_binaries_for_Xperia_Android_13_4.19_v4a_lena

NOTE: For device pdx235 I need as software binaries SW_binaries_for_Xperia_Android_13_5.4_v2b_zambezi because otherwise the camera is not working, as I reported in a previous issue.

Previously working on
xperia10III with android11 worked fine

Description
I've two communicating phone, let me say a xperia10V or xperia10III and my phone (not an xperia). Both phones are using the same messaging app.

Symptoms
When I make a call (either audio or video), on xperia side the received voice is bad (it seems like Donald Duck speaking), while on my phone side I can hear my voice perfectly.

How to reproduce
Install an app, can be whatsapp, conversation or monocles (the three I tested) and make a call.

Additional context
Once the phone call was set up I can read from logcat lots of errors like

11-05 17:51:48.117   777  7465 W audio_hw_primary: out_write: underrun(6656) frames_by_time(243) > out->last_fifo_frames_remaining(0)
11-05 17:51:48.118   777  7465 W audio_hw_primary: out_get_presentation_position: avail:296640 > kernel_buffer_size:1920 clamping!

Inside the file log.txt there is a full logcat of an xperia10V when I receive a call with whatsapp, it shows exactly the same behaviour with conversations.

Thankyou in advance for your attention.
Best
Paolo

@PaoloP79 PaoloP79 added the bug label Nov 5, 2024
@bartcubbins
Copy link
Contributor

On it. Thanks for the report!

@bartcubbins
Copy link
Contributor

I found the reason. It's completely my fault. When I updated the HIDL Audio HAL to version 7.1, the audio policy was also updated. I wrote a script that dumped the stock audio policy and updated its XML schema.
However, since the stock configuration comes with at least three different configs:

  • /vendor/etc/audio_policy_configuration.xml
  • /vendor/etc/audio/audio_policy_configuration.xml
  • /vendor/etc/audio/sku_{platform}/audio_policy_configuration.xml

The last path was selected as the primary one because it is used by most platforms. Unfortunately, some mid-range platforms like Murray, Zambezi, and Lena use the second path.

I will manually check each platform and send a fix.

Once again, I deeply apologize.

@PaoloP79
Copy link
Author

PaoloP79 commented Nov 7, 2024

Thank you very much bartcubbins for finding a solution.

In my honest opinion... no apologies need. It hapens

Have good day

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

No branches or pull requests

2 participants