echo: close echo ref before speaker

Close the echo reference (in a deterministic fashion) so we don't
underrun the path when we stop the speaker path.

BUG=b:175797243
TEST=stress test to see if xrun errors appear

Change-Id: Ib40135d0c23fc7ca2ec4d3328cacd52b9023add5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2602554
Tested-by: Curtis Malainey <cujomalainey@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Auto-Submit: Curtis Malainey <cujomalainey@chromium.org>
2 files changed