msm8660: only use voip stream if sample rate is 16k or less

Change-Id: If735eee450fa9f9c99aa83c9cf1a81a955b12c57
msm8660: add routing for VOIP_CALL input stream

Change-Id: I5556f308670c6fe94dd8a82e2cb9484affd5e791
msm8660: use defines instead of "magic" numbers

* use AUDIO_HW_VOIP_SAMPLERATE_8K and AUDIO_HW_VOIP_SAMPLERATE_16K
  for sample rates for voip
* use AUDIO_HW_VOIP_BUFFERSIZE_8K and AUDIO_HW_VOIP_BUFFERSIZE_16K
  for buffer sizes for voip

Change-Id: Iba62c778711a5a9258a8492719dcabed834513dc
msm8660: fix getInputBufferSize to calculate buffer sizes

* dirived from alsa driver

Change-Id: Ife6dc216230617c2bc11bf6a51abe0488075acc5
audio/msm7x30: Use kernel headers for 7x30.

Just like msm8660, add support to pull headers from the kernel.

Patch Set 2: Make sure the kernel source is there.
Patch Set 3: No tabs!

Change-Id: I235c49e25963e82e0d2ac4cad4d01dd02c8320aa
audio/msm7x30: #ifdef HTC audio changes

Patchset 1: Initial ifdef
Patchset 2: Get rid of isHTCPhone check
            Finish conditional revert of HTC changes
Patchset 3: More cleanup
            Fix build
Patchset 4: Reorganize start of AudioHardware::AudioHardware()
            and move mVoiceVolume out of HTC ifdef
Patchset 5: Minor changes to the order done in previous patchset
Patchset 6: Actually use mVoiceVolume for non-HTC devices too
Patchset 7: Really fix mVoiceVolume

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Id3ddfc8d8a22be13b5f56e66f7fa8af3b2bf8bd3
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1