New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 789136 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 794954



Sign in to add a comment

audio_AlsaLoopback failing because of low recorded volume

Project Member Reported by wuchengli@chromium.org, Nov 28 2017

Issue description

audio_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.
 
I ran audio_AlsaLoopback on a butterfly. The first run after reboot always failed. The second run passed. 
audio_AlsaLoopback_butterfly_fail.zip
768 KB Download
audio_AlsaLoopback_butterfly_pass.zip
426 KB Download
audio_diag_after_first_test.txt
248 KB View Download
audio_diag_after_second_test.txt
248 KB View Download
audio_diag_before_test.txt
35.3 KB View Download
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.
Cc: chinyue@chromium.org hychao@chromium.org
audio_AlsaLoopback calls cras_rms_test_setup at the beginning. It already sets the volume and gain.
Project Member

Comment 5 by bugdroid1@chromium.org, 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

The fix was picked up by 10174.0.0.
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.
Blocking: 794954
Owner: cychiang@chromium.org

Sign in to add a comment