commit | b84cfd65e2de424b4b6f0026ec91f69b67b5653e | [log] [tgz] |
---|---|---|
author | Yu-Hsuan Hsu <yuhsuan@chromium.org> | Mon Jul 23 17:00:24 2018 +0800 |
committer | chrome-bot <chrome-bot@chromium.org> | Tue Aug 07 07:31:24 2018 -0700 |
tree | 4c524610e1ae7e7f4997b625f510e368ca6872fb | |
parent | e2d6c6ab5f833a4c1a7bf3d95ebf268f9d2d69d4 [diff] |
CRAS: dev_io - Update underrun detector The pervious underrun detector is not accurate. The better method is getting a new hardware level and compare with the number of frames we have written. We also need to compute device wake up time earlier so that we won't call extra snd_pcm_avail function which may cause some problems. The related discussion is in https://docs.google.com/document/d/1AxRP1-GN0Zy7T4ebfsykmJcynzoay6Xjs-gOK0poPnE BUG=b:77485214 TEST=CRAS works well on peppy and coral for a day. Change-Id: Id39ceb54c53ae7ec7d874e89fada27156eade660 Reviewed-on: https://chromium-review.googlesource.com/1143097 Commit-Ready: Yu-Hsuan Hsu <yuhsuan@chromium.org> Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>