1# Copyright 2019 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 Audio Team, [email protected]' 6NAME = 'audio_CrasPinnedStream' 7PURPOSE = """ 8Test that all audio recording still works when multiple devices records 9simultaneously. This is essential for enabling assistant. 10""" 11CRITERIA = """ 12Check if the internal mic can record samples while the headset is also 13recording. 14""" 15ATTRIBUTES = "" 16TIME = 'SHORT' 17TEST_CATEGORY = 'PLAYBACKCAPTURE' 18TEST_CLASS = "audio" 19TEST_TYPE = 'client' 20DEPENDENCIES = 'audio_loopback_dongle' 21PY_VERSION = 3 22 23DOC = """ 24Test that we can record from multiple devices simultaneously. 25 26NOTE: For this test to pass you need to have the line out looped back to mic-in. 27This can be through a 3.5mm male-to-male cable or a loopback dongle depending on 28your device. 29""" 30 31job.run_test('audio_CrasPinnedStream', constraints=['rms_value > 0.05']) 32