Merge 717bcdf5c4d05bbf0486c8d0f983df02dddfaf9a on remote branch

Change-Id: Ie70007556c005cf42602dc3c547823896544673b
Merge "Merge 717bcdf5c4d05bbf0486c8d0f983df02dddfaf9a on remote branch"
Merge cf9061d64557c49d3fe6b72e7fe0c39b3cec7e93 on remote branch

Change-Id: Id1d765ea0a3dddf632126b5838ddf11c1d15abd6
Merge "Merge cf9061d64557c49d3fe6b72e7fe0c39b3cec7e93 on remote branch"
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
Merge 03e23150c01cb7c943fb8ec291e9a8e9ee5c4ed2 on remote branch

Change-Id: Ic8f8f3f8100ab53d93f734029f3d5429b7c44d04
Merge "Merge 03e23150c01cb7c943fb8ec291e9a8e9ee5c4ed2 on remote branch"
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
Merge "hal: reset echo reference at the end of recording/VoIP sessions"
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
Merge "hal: reset echo reference at the end of recording/VoIP sessions"
Merge 8ec2aef9cf7218ef040ab610a5dbc70fef686d0c on remote branch

Change-Id: I083a80c1fc9c0293ccf8fbc672bb8a3db4122078
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 "Merge 8ec2aef9cf7218ef040ab610a5dbc70fef686d0c on remote branch"
Merge "Revert "hal: Fix for no audio on BT headset till waiting call is ended.""
Merge c1339d82d225f20abfcd552a94c7d527b7f076e1 on remote branch

Change-Id: I703d78cb5f635bae9e12b2abb8b40211ac5ad308
Merge "Merge c1339d82d225f20abfcd552a94c7d527b7f076e1 on remote branch"