hal: Fix underrun in Compress VOIP path

Underrun occurs in compress VOIP path when the application
passes less bytes than the actual buffer size allocated on
the basis of period size and no of channels. Fix underrun by
ignoring the pcm_write for such buffers.

CRs-Fixed: 2052745
Change-Id: I74269ffe15ef021bf57f5bea4eada44f67c51981
1 file changed