audio :Close HotWord audio source if it is already opened

- HotWord GTS test tries to record using second instance
  of HotWord Audio Source while one is already active.
  AudioPolicyManagerALSA is not closing the previous audio
  input before starting the second input.
- AudioHardwareALSA::openInputStream rejects opening
  of the second instance of audio input.
- HotWordAudioSource GTS test case fails due to above
  reasons.
- Fix is to enable the code that closes the previous
  input before starting the second audio input.
- Remove the code in openInputStream that is restricting
  the second record client. This is not needed now as it
  is already done in startInput of AudioPolicyManagerALSA

Change-Id: I63cd5061e23bef6c1f7c52cadd65833778e34018
CRs-Fixed: 591788
Merge remote-tracking branch 'cm/cm-11.0' into merge_cm
audio :Close HotWord audio source if it is already opened

Summary:
- HotWord GTS test tries to record using second instance
  of HotWord Audio Source while one is already active.
  AudioPolicyManagerALSA is not closing the previous audio
  input before starting the second input.
- AudioHardwareALSA::openInputStream rejects opening
  of the second instance of audio input.
- HotWordAudioSource GTS test case fails due to above
  reasons.
- Fix is to enable the code that closes the previous
  input before starting the second audio input.
- Remove the code in openInputStream that is restricting
  the second record client. This is not needed now as it
  is already done in startInput of AudioPolicyManagerALSA

Change-Id: I63cd5061e23bef6c1f7c52cadd65833778e34018
CRs-Fixed: 591788

Merge remote-tracking branch 'cm/cm-11.0' into merge_cm

clang work-around for a nasty static inline call from hardware_legacy/AudioHardwareBase.h

NOTE: other hw/audio projects may need this as well since
the fail is originating from a libhardware_legacy header

Test Plan: confirm build on as many build variants as possible due to clang fix

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn, rlasalle15

Differential Revision: http://review.codefirex.com/D281