CRAS: audio_thread - Use wake up time from dev_stream

Now that dev_stream provides dev_stream_wake_time, audio_thread can use
that to determine wake up time for input device. The wake up time for
input device will be the earliest one among dev_stream_wake_time of all
streams on this device.

BUG=chrome-os-partner:60786
TEST=make check
TEST=check audio thread log when cras_test_client --loopback_f
/tmp/lb.raw is running. Check there is no busy wake up in audio thread.

Change-Id: Icd41b4c6880dbabcbcc3ecfc813ab62cdb361d85
Reviewed-on: https://chromium-review.googlesource.com/446622
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2 files changed