commit | c9672827ec4b2893eb0d06e2fbee0be9ca156aa8 | [log] [tgz] |
---|---|---|
author | Zhou Song <zhous@codeaurora.org> | Wed Aug 16 16:01:39 2017 +0800 |
committer | Garmond Leung <garmondl@codeaurora.org> | Tue Aug 29 16:26:44 2017 -0700 |
tree | 96d2591dbc9068675e8d4f2c7e612970245bd3cb | |
parent | e49253e19ab35b5b76174104251fad4940fe5a5c [diff] |
hal: accumulate written frames when error occurred during write Frames are discarded directly but not accumulated to written frames when pcm write failed. This can make the playback position queried from HAL is less than actual. Move frames accumulation into a standalone func and handle this for both failed and successful write. CRs-Fixed: 2093628 Change-Id: I5b222f123306de603504f6bed4d4e3cdcc7a5b36