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 Authors' 6 NAME = 'audio_CRASFormatConversion' 7 PURPOSE = 'Test playing audio with the CRAS test client.' 8 CRITERIA = """ 9 Check that converting between different sample rates doesn't crash. 10 """ 11 TIME='SHORT' 12 TEST_CATEGORY = 'PLAYBACKCAPTURE' 13 TEST_CLASS = 'audio' 14 TEST_TYPE = 'client' 15 ATTRIBUTES = "suite:audio" 16 DEPENDENCIES = 'audio_loopback_dongle' 17 18 DOC = """ 19 NOTE: For this test to pass you need to have the line out looped back to mic-in. 20 This can be through a 3.5mm male-to-male cable or a loopback dongle depending on 21 your device. 22 """ 23 24 TEST_SAMPLE_RATES = [ 25 8000, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000] 26 27 job.run_test( 28 'audio_CRASFormatConversion', 29 test_sample_rates=TEST_SAMPLE_RATES, 30 constraints=['min_rms_value > 0.05']) 31