Bug 928188

Summary: Audio test should specifies device when play and record sample sound
Product: [Retired] Red Hat Hardware Certification Program Reporter: Yunlong Xue <yxue>
Component: Test Suite (tests)Assignee: Qian Cai <qcai>
Status: CLOSED ERRATA QA Contact: Qian Cai <qcai>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.6.4CC: bbrock, gnichols, qcai, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hwcert-client-1.6.4-R44 Doc Type: Bug Fix
Doc Text:
Cause: running AUDIO test when multiple sound cards exists Consequence: incorrect sound card might be used to test Fix: The new AUDIO test is changed to device-based, if there are multiple sounds cards exist, multiple copy of AUDIO test will be run and each card will be tested. Result: AUDIO test can choose correct sound card to test and give correct test result.
Story Points: ---
Clone Of:
: 928202 1929211 (view as bug list) Environment:
Last Closed: 2013-08-06 17:48:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 928202, 969013    

Description Yunlong Xue 2013-03-27 05:40:35 UTC
If a system have multi soundcards/devices, such as 
/devices/pci0000:00/0000:00:03.0/sound/card0 and
/devices/pci0000:00/0000:00:1b.0/sound/card1

And default playback and capture devices are on card0.

In this situation, both following tests will use card0 to play and record sample sound, so card1 is never tested.
v7 run --test=audio --udi=/devices/pci0000:00/0000:00:03.0/sound/card0
v7 run --test=audio --udi=/devices/pci0000:00/0000:00:1b.0/sound/card1

I think we'd better set default or specify device when play and rec, such as:
"aplay /usr/share/sounds/alsa/Front_Center.wav -D plughw:0"
(Not sure how to us sox :P )

Comment 1 Yunlong Xue 2013-03-27 05:43:01 UTC
Or at least, print some info in log to show which device were used to play and rec.

Comment 9 Lingzhu Xiang 2013-06-25 09:11:16 UTC
Verified in hwcert-client-1.6.4-56.el6

Comment 13 errata-xmlrpc 2013-08-06 17:48:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1139.html