audio_hal: Ensure input buffer size represents an integral number of
frames.

Update get input buffer size logic for record use cases
such that the size is also a multiple of bytes per sample
period. For 1 channel 24 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.

Bug: 152727483
Test: repro steps in the bug.
Merged-In: I953366e09d98352d30b82f40c18a261d2355cf2c
Change-Id: I953366e09d98352d30b82f40c18a261d2355cf2c
1 file changed
tree: 3c8893506554e5a9047bda358ba9ca9d0eaa1748
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk
  7. OWNERS