alsa_api_test: Add a test binary for ALSA API

Test snd_pcm_drop and snd_pcm_forward behavior.
These two calls are needed for new CRAS scheduling.
The implementation may be different on different boards.
This binary can help developers to check the behavior of ALSA API.

BUG=chromium:601346
TEST=On samus, run `alsa_api_test --device hw:1,0 --drop`, will fail.
TEST=On samus, run `alsa_api_test --device hw:1,0 --move`, will pass.

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