diff options
author | Paul Hsia <paulhsia@google.com> | 2018-07-23 17:53:10 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-07 01:50:08 -0700 |
commit | 62f13cff586f323f1116c81f1be3842b57e961cb (patch) | |
tree | 1b0a3979eb52dda1abb803e946a7c316de357587 /cras/src/server/audio_thread.c | |
parent | 0ac969032653ad0fcce106d425098d5fa10e27d1 (diff) | |
download | adhd-62f13cff586f323f1116c81f1be3842b57e961cb.tar.gz |
CRAS: Add methods to show snapshots in cras_test_client
Add option "--dump_events" in cras_test_client which will call
show_audio_thread_snapshots.
Function show_audio_thread_snapshots will use
audio_thread_snapshots as a callback function to call
cras_client_update_audio_thread_snapshots and print out audio thread
snapshots in snapshot buffer.
BUG=chromium:866240
TEST=Apply full patch set to run
$ cras_test_client --playback_file /dev/zero --playback_delay_us
10000
and input 'i' and 'key_enter' to cause underrun event. Then using
$ cras_test_client --dump_e"
could see the audio thread snapshot for that event.
Change-Id: I685b9c4ee813cfaaad3300866d780b030a16bb26
Reviewed-on: https://chromium-review.googlesource.com/1148086
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'cras/src/server/audio_thread.c')
0 files changed, 0 insertions, 0 deletions