CRAS: iodev - Fix input_dsp_offset calculation

There's case when number of frames read from input device
is smaller than the last tracked input_dsp_offset.
Updating the input_dsp_offset for next thread wake up should
base on the max number of frames that has input dsp applied.

BUG=chromium:876333
TEST=Test normal recording, and recording with AEC effect.

Change-Id: I749c6f06ee6920b3d3bd7011fe04f5c0cf6be1a4
Reviewed-on: https://chromium-review.googlesource.com/1188053
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2 files changed