hal: Set echo reference from mixer file

Set echo reference from mixer file.

Change-Id: Ie33c56c37619bdf70d5595fa678235c8845fd4e2
hal: reset echo reference at the end of recording/VoIP sessions

Echo reference is not being reset currently at the end of
recording/VoIP session causing the echo reference not to
work in the further instances of recording/VoIP sessions.
Fix this by resetting echo reference while closing the input
stream used for recording/VoIP usecases.

CRs-Fixed: 717973
Change-Id: I761ba112952951777525b1bf102c9d6ccaad3269
Revert "hal: Fix for no audio on BT headset till waiting call is ended."

This reverts commit cf6a0ac452ee433da6b73e1934ecde8012f0a13d. This is to
fix isInCall() to return proper value.

CRs-Fixed: 740052
Change-Id: Iee7fb448df7f5f428b2011a996b6b97e5488d245
Merge "hal: Set echo reference from mixer file"
Merge "hal: reset echo reference at the end of recording/VoIP sessions"
Merge "Revert "hal: Fix for no audio on BT headset till waiting call is ended.""
hal: fix voice call device routing issue

adev->voice_device_set flag is to indicate voice call
device routing update from policymanager to HAL.It is
set to true in voice_start_call and reset in update_calls()
which causes mismatch in flag update during back to back
voice calls scenario. Update adev->voice_device_set flag
in voice_stop_call instead of update_calls(). Rename
voice_device_set flag to in_call for readability.

Change-Id: I4472673c3ef2a66c0cca3d26b260b00b8fd7891e
CRs-Fixed: 744255
Merge "hal: fix voice call device routing issue"
Merge 22b57f4f1c44e44f33964c732874dd8cc905783a on remote branch

Change-Id: I70b8169d28ac3ca7906148e115efbe0caf6a744a
Merge "Merge 22b57f4f1c44e44f33964c732874dd8cc905783a on remote branch"