commit | 68436cf9c79b8a484289ccdce82d3d6f9b6c1482 | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Mon Sep 19 17:51:37 2022 -0700 |
committer | Atneya Nair <atneya@google.com> | Fri Sep 23 23:27:18 2022 +0000 |
tree | 7f05d4f40f8fb10b72472893734ff414ac7dddcd | |
parent | 36af0f66e5c27f106459bd9aa013eb8ef0770aca [diff] |
Clamp float data sent to HAL When memcpying from float to float, we don't check for values above unity, including NaN. In all other PCM cases, we clamp on either side of the conversion. Prior to writing to the HAL, check the data to insulate HALs which may not tolerate invalid float PCM data gracefully. Bug: 247119066 Bug: 241662887 Test: atest AudioTrackTest Change-Id: I355c98f94b1bc9e340f609348ba1b9184c0fd1e3 (cherry picked from commit ba9a1070434ad6de3c87c6b945e8d9bb870a5e77)