commit | 5d0261eae8f299f0fe09608a679e84e3d7b7341e | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Fri May 25 09:43:59 2018 -0700 |
committer | Jiabin Huang <jiabin@google.com> | Fri May 25 18:41:57 2018 +0000 |
tree | 43de70f8ab9493084482b6d6a9bb9c33837ea2b5 | |
parent | 3a5da9d4cc9d1dc9cd566e13ff499bf3e309306b [diff] |
Add stop threshold for afe proxy record. As the stop threshold for afe proxy record is INT_MAX, the pcm will never stop unless we manually call pcm_stop. In that case, we can't detect the overrun state. Set the stop threshold as buffer size to stop pcm when overrun. And then it will fall into XRUN and restart pcm. Bug: 79121802 Test: Make phone call with usb-c adapter and headset. Change-Id: I1f502b9017d6e2c811f625deb3bf659d81a60ca0