diff options
author | Keith Mok <kmok@cyngn.com> | 2016-01-05 14:18:07 -0800 |
---|---|---|
committer | Keith Mok <kmok@cyngn.com> | 2016-01-05 14:18:07 -0800 |
commit | 60bb4cadf7cfe017fdca01b0843b6a45384cb7c9 (patch) | |
tree | 4f196b4d3d142c990dd4bd121ebff67463ad03cd | |
parent | 3b01dda6d0201e63b05db231e7746e1118eb4fae (diff) | |
download | android_system_media-60bb4cadf7cfe017fdca01b0843b6a45384cb7c9.tar.gz android_system_media-60bb4cadf7cfe017fdca01b0843b6a45384cb7c9.tar.bz2 android_system_media-60bb4cadf7cfe017fdca01b0843b6a45384cb7c9.zip |
audio_utils: Fix 24-bit offload conversions
* Use standard functions instead of open-coding.
* Add PCM_FLOAT conversion too.
Change-Id: I8890645e81edee7bfcc05e247d8a4c68fc05f697
-rw-r--r-- | audio_utils/format.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio_utils/format.c b/audio_utils/format.c index ac89f038..1aba6c85 100644 --- a/audio_utils/format.c +++ b/audio_utils/format.c @@ -155,6 +155,9 @@ void memcpy_by_audio_format(void *dst, audio_format_t dst_format, } return; } + case AUDIO_FORMAT_PCM_FLOAT: + memcpy_to_i32_from_float((int32_t*)dst, (float*)src, count); + return; default: break; } |