factory_Audio: add -D hw:0,0 to arecord since the default does not work
Add -D hw:0,0 argument to arecord since the default argument does not
work.
BUG=none
TEST=run factory_Audio test with external mic and built-in mic.
Change-Id: Icf8f8a4d2a81881acdd0d1232af334854b12f47f
Reviewed-on: https://gerrit.chromium.org/gerrit/32682
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
diff --git a/client/site_tests/factory_Audio/factory_Audio.py b/client/site_tests/factory_Audio/factory_Audio.py
index a1c0979..e336441 100644
--- a/client/site_tests/factory_Audio/factory_Audio.py
+++ b/client/site_tests/factory_Audio/factory_Audio.py
@@ -113,7 +113,8 @@
# Record via mic.
if os.path.isfile('rec.wav'):
os.unlink('rec.wav')
- cmd = 'arecord -f dat -t wav rec.wav'
+ # Add -D hw:0,0 since default argument does not work properly.
+ cmd = 'arecord -D hw:0,0 -f dat -t wav rec.wav'
elif event.keyval == ord('p'):
# Playback canned audio.
# Add -D hw:0,0 since default argument does not work properly.