commit | b49b3f6de9d4ae6f27949c78d474685a4e829e99 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Feb 29 17:59:49 2016 -0800 |
committer | Eric Laurent <elaurent@google.com> | Wed Mar 02 17:07:24 2016 -0800 |
tree | ca55672f7d91f06358e3c4238820f3d3f0af78d9 | |
parent | 6ebe59647a65eeea0f9f21aad720ca185c89d47d [diff] |
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