commit | b38769cb825d26d72e1d9568db56759ceee1e2ce | [log] [tgz] |
---|---|---|
author | Karthikeyan Mani <kmani@codeaurora.org> | Wed Nov 07 15:44:13 2018 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Nov 21 11:05:46 2018 -0800 |
tree | f867635de5bf2bc1725dfe97eb3a3dcaad4ac5bc | |
parent | 841cb5f27eca0358f8b6e9692877bc47e4f833d5 [diff] |
hal: Check input buffer size as multiple of channel Update get input buffer size logic for record use cases such that the size is also a multiple of bytes per sample period. For 6 channel 32 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. Change-Id: Ibca14baf26334888819cd15db39626b63c14f626