hal: Fix voice calls starting on speaker unintendedly

If setParameters(vsid, callstate) call is processed before
setparameter(routing), voice calls will be started on speaker.
Fix by not starting voice calls by checking if the primary output
device is speaker.

Change-Id: If3ecb83bbcb02d5da40d66340276263413adabc9
1 file changed
tree: 260756de0a3631467af2d96846ef50617b06484b
  1. hal/
  2. legacy/
  3. mm-audio/
  4. policy_hal/
  5. visualizer/
  6. voice_processing/
  7. Android.mk