FuguAudio: improve buffer sizing for AC3 and DTS passthrough

Set framesPerChunk to a multiple of 512 if the data is being
written to the HAL in multiples of 512.

This helps reduce the number of retrograde timestamps and
spontaneous device shutdowns.

Bug: 19938315
Change-Id: Ib1e742130f31d029a4008149aa390d520706bd74
Signed-off-by: Phil Burk <philburk@google.com>
2 files changed