audio/msm8660: Fix dragging voice and deadlock in VOIP call.

- Dragging voice is heard at the far end due to wrong sampling
  rate configuration
- Input stream sampling rate for VOIP call is hardcoded to 8K
  Hence WB call uplink is also configured at 8K instead of 16K
- Set proper sampling rate instead of hardcoding the value

- Deadlock is observed sometimes during VOIP call setup
- VOIP call device setup is called by taking mLock which calls
  doRouting function which also acquires the same lock. This
  results in deadlock while read thread acquires the lock and
  write thread tries to call the device setup function
- Fix this issue by calling VOIP device setup function without
  acquiring the lock during call setup

(cherry picked from commit c259df62731724461959955b8d57972d300319dd)

Change-Id: I39f4c146cdb627f00c5e58d71abedf88ae2197b4
(cherry picked from commit d52665de514188208110860d681c67a419c7a452)
2 files changed
tree: 1a522fb9243d52a3b8dd1497f93c62a917acdd68
  1. alsa_sound/
  2. audiod/
  3. libalsa-intf/
  4. mm-audio/
  5. msm7x30/
  6. msm8660/