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

Skip to content
Commit 9bca81c8 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: use CLOCK_MONOTONIC_RAW in A2DP encoding for TARGET_FLOSS

Floss uses CLOCK_MONOTONIC and CLOCK_BOOTTIME for various timestamp and
timediff calculation.

This causes glitches when the audio stack calculates timestamp and
schedules with CLOCK_MONOTONIC_RAW.

In this CL, we swap out the clock used in scheduling A2DP packet
encoding to use CLOCK_MONOTONIC_RAW when the build is targeted to Floss.

Note that we intentionally leave the timestamps in metrics/stats
untouched since they have different purposes (e.g., allowing to match
with other timestamps across applications).

Bug: 241816575
Tag: #floss
Test: Build and verify A2DP doesn't glitch

Change-Id: I275208e33285282911c49caa599cbb14a810bfa9
parent de31b5a2
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