Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ed31cc10 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Accept audio from audio server in data_interval_us chunks

Currently, we request audio server to pass audio data in 2ms intervals.
With LE Audio this makes not much sense, data is encoded in 7.5 or 10ms
interval.
With this patch applied, we request audio server to provide us with data
only once every interval.

Looks like waking/sleeping, locking/unlocking and additional buffer moves
were actually quite expensive. Before this patch, CPU usage by
bluetooth process is around 86% on Pixel 6 PRO when playing music with
screen off. Audio is often breaking and sttering.
With this patch applied, the CPU usage in same scenario goes down to
around 46%, and the audio stuttering is significantly reduced.

Test: manual, verify audio quality in hearing test.
Bug: 150670922
Change-Id: I9687a4ab813f389597d674b2bc1f0f16d709f1c7
parent 7fc3d1cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment