audio_AlsaLoopback failing because of low recorded volume |
||||
Issue descriptionaudio_AlsaLoopback is failing intermittently on Samus, Rikku, Snappy, Butterfly, and Banon. I checked hw_recorded.wav of failing tests. The audio sounded right but the volume was lower. RMS was usually 0.01x. Jimmy suggested setting output note volume and capture gain in the beginning of the test.
,
Nov 29 2017
I found if we run loopback_latency first, audio_AlsaLoopback will pass. audio_AlsaLoopback runs loopback_latency at the end of the test. That's why the second time the test always passes.
,
Nov 29 2017
audio_AlsaLoopback calls cras_rms_test_setup at the beginning. It already sets the volume and gain.
,
Nov 30 2017
,
Nov 30 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/edbb42d3494117d1d658502328a1c3fe69b42120 commit edbb42d3494117d1d658502328a1c3fe69b42120 Author: Wu-Cheng Li <wuchengli@google.com> Date: Thu Nov 30 17:17:26 2017 audio_AlsaLoopback: fix recorded audio has low volume. audio_AlsaLoopback needs CRAS to set the volume and gain. Use CRAS to play some audio so volume and gain are initialized by CRAS. BUG=chromium:789136 TEST=Reboot butterfly and run audio_AlsaLoopback. Change-Id: I810544500ec9fe823e907570b423d80a481ce35e Reviewed-on: https://chromium-review.googlesource.com/798952 Commit-Ready: Wu-Cheng Li <wuchengli@chromium.org> Tested-by: Wu-Cheng Li <wuchengli@chromium.org> Reviewed-by: Wu-Cheng Li <wuchengli@chromium.org> [modify] https://crrev.com/edbb42d3494117d1d658502328a1c3fe69b42120/client/cros/audio/audio_helper.py
,
Nov 30 2017
The fix was picked up by 10174.0.0.
,
Dec 7 2017
The failure rate improved from 25% to 21%. Bufferfly passed every time since 10174.0.0. But the fail rate is still worse than audio_CrasLoopback. I need to debug more.
,
Dec 14 2017
,
Jun 5 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by wuchengli@chromium.org
, Nov 29 2017768 KB
768 KB Download
426 KB
426 KB Download
248 KB
248 KB View Download
248 KB
248 KB View Download
35.3 KB
35.3 KB View Download