audio: Add support for tunnel mode recording and compress voip

- Use modulo operator for common block buffer handling. Common block
  size is rounded to power of two. This limitation is avoided with
  modulo operator.
- Add support for tunnel mode recording
- Add support for compress voip

PS 2: Fixup ifdefs.

Change-Id: I95cdfff729affd784141487521c9f2f714221d11