audio/msm8660: Fix for crash during encoding

-SoundRecorder crashes when encoding is starts.
-Read call comes before device selection.
-Add delay to call read after device selection.

Change-Id: I7e61c05aa3b0fdaebb5c34c6e9a141b40393c714
audio/msm8660: Fix for voice call audio not routing to earpiece

- Voice call audio is routed speaker even when earpiece
  is connected to the device.
- Earpiece is default attached device to target. Entry for
  earpiece as global attached output device is missing.
- Add earpiece as global attached output device in
  audio policy config file.

(cherry picked from commit 7e6201c76f1d617e024d018119c84504c52c58d3)

Change-Id: Ia9dedc832c30ce5c6f9b252735324e9dbccc334b
audio: Interface changes for the msm8660 and 7627

Interface changes to avoid build errors for the JB HAL

(cherry picked from commit 4106656630e875305722bf198add395b8074884e)

Change-Id: Idacc49b76cb1d80136960fb5b0c55dda15e7f442

Conflicts:
	msm7627a/AudioHardware.cpp
	msm7x30/AudioHardware.h
	msm7x30/audio_hw_hal.cpp