Revert "libhardware_legacy: Use direct output only for voip call"

This reverts commit dbd180ebbce1a32c205daa08918e58801f9c6235.

Change-Id: I44ce307502e2cb209ce6d9d1c4457ba4f76d5831
Revert "hardware/libhardware_legacy: Add support for audio on WiFi Display device"

This reverts commit 2fa26ae7c943fa746945dcd6a9c6b29669c7dbb6.
Revert "hardware/libhardware_legacy: Use direct output for VoIP feature"

This reverts commit b438e2fc28f1af28faf6cabc8acc48a02a244999.
libhardware_legacy: Fix routing issue after record during voice call

- During a voice call with speaker as the output device,
  when recording (using the SoundRecorder app) is initiated,
  the call is routed to the earpiece. However, after the
  recording is terminated, the voice call doesn't switch
  from the earpiece to the speaker.
- After the recording is complete, routing is done through
  device 0 which does not change the output device.
- Set the appropriate device by calling setOutputDevice()
  in AudioPolicyManagerBase::stopInput().

Change-Id: Iadedd6851d7628fab89881e3d2ee9fcdf7ae6360
CRs-Fixed: 398105