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.
Change-Id: I953366e09d98352d30b82f40c18a261d2355cf2c
1 file changed