audio: fix for device not disabled after ending voice call

- Issue: input/output devices are not disabled when voice
  call is ended
- Cause: In AudioPolicyManager::setPhoneState(), a change is made
  to update devices for all outputs. GetNewdevice() on primary
  output is called again. However setParameters is not called to
  close i/o device in setOutputDevice().
- Fix: revert to use Google's default logic for primary output.
  Update device only for non-primary outputs.

Change-Id: If8e855591db22796c7117f2ec2570c6c525cdf54
CRs-Fixed: 474403
Merge "audio: fix for device not disabled after ending voice call" into cm-10.1