commit | 8c5b23dfb235ee957f2bca7b7d8a8289ebf8ba6f | [log] [tgz] |
---|---|---|
author | Zheng Zhang <zhzh@google.com> | Fri Dec 30 17:29:10 2016 +0800 |
committer | Zheng Zhang <zhzh@google.com> | Thu Jul 20 21:32:51 2017 +0000 |
tree | 2964f05f0781f4ddab3f539e98d410cec0fd975b | |
parent | ddad829c968342f0f04c08817ad672da0d54c35f [diff] |
audio: hal: fix click "resume call" two times will cause no sound in HFP call. If click "resume call" many times when making hfp call, telecom will send REQUEST_UNHOLD and call start_hfp in audio hal many times, then pcm_open failed, and no sound will be heard when we make hfp call again. So return 0 at the beginning of start_hfp if hfp is already active. Bug: 33226115 Bug: 33459120 Change-Id: I517918ef55fce96cf3761e04db89ed634250165f