audio flinger: add check in getInputBufferSize()

Make sure that the sample rate passed to getInputBufferSize()
is not 0 to avoid divide by 0 in destinationFramesPossible()

Also check the channel mask parameter for validity.

bug: 26866012
Change-Id: Ifabbf56cadb0db104f99230cacdba30e0c6a0a3a
1 file changed