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 5AUTHOR = 'The Chromium OS Audiovideo Team, chromeos-audio@google.com' 6NAME = 'audio_CrasLoopback' 7PURPOSE = 'Test that audio played to line out can be heard at mic in.' 8CRITERIA = """ 9Check if the audio played to line out is heard by cras_test_client at mic in. 10""" 11ATTRIBUTES = "suite:audio, suite:partners" 12TIME = 'SHORT' 13TEST_CATEGORY = 'PLAYBACKCAPTURE' 14TEST_CLASS = "audio" 15TEST_TYPE = 'client' 16DEPENDENCIES = 'audio_loopback_dongle' 17 18DOC = """ 19Test that audio playback and capture are working. 20 21NOTE: For this test to pass you need to have the line out looped back to mic-in. 22This can be through a 3.5mm male-to-male cable or a loopback dongle depending on 23your device. 24""" 25 26job.run_test('audio_CrasLoopback', constraints=['rms_value > 0.05']) 27