Home | History | Annotate | Download | only in audio_AlsaLoopback
      1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = 'The Chromium OS Audiovideo Team, chromeos-audio (a] google.com'
      6 NAME = 'audio_AlsaLoopback'
      7 PURPOSE = 'Test that audio played to line out can be heard at mic in.'
      8 CRITERIA = """
      9 Check if the audio played to line out is heard by arecord at mic in.
     10 """
     11 ATTRIBUTES = "suite:audio"
     12 SUITE = 'audio'
     13 TIME = 'SHORT'
     14 TEST_CATEGORY = 'PLAYBACKCAPTURE'
     15 TEST_CLASS = "audio"
     16 TEST_TYPE = 'client'
     17 DEPENDENCIES = 'audio_loopback_dongle'
     18 
     19 DOC = """
     20 Test that audio playback and capture are working.
     21 
     22 NOTE: For this test to pass you need to have the line out looped back to mic-in.
     23 This can be through a 3.5mm male-to-male cable or a loopback dongle depending on
     24 your device.
     25 """
     26 
     27 job.run_test('audio_AlsaLoopback', constraints=['rms_value > 0.05'])
     28