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

Skip to content
Commit b49b3f6d authored by Eric Laurent's avatar Eric Laurent
Browse files

audio HAL: optimize compress_write() size

compress_write() does not accept partial writes and will
reject a buffer entirely if the available size is less than
the write size.

This change queries the available size before writing and limits
the write size if needed.

Bug: 26668110

Change-Id: I7bf6c14146c37a7e33006dda8a550ef22e6c65c6
parent 6ebe5964
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