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

Skip to content
Commit 53fd0723 authored by llololo's avatar llololo Committed by Andy Hung
Browse files

audio_hal: Ensure input buffer size represents an integral number of

frames.

Update get input buffer size logic for record use cases
such that the size is also a multiple of bytes per sample
period. For 1 channel 24 bit recording the computed
value was not a multiple of bytes per sample and this
mismatches with the computed value by ALSA causing
buffer invalid errors because the use case pointers
difference was reaching stop threshold.

Bug: 152727483
Test: repro steps in the bug.
Merged-In: I953366e09d98352d30b82f40c18a261d2355cf2c
Change-Id: I953366e09d98352d30b82f40c18a261d2355cf2c
parent 9e85e402
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment