SunVTS 2.1 Test Reference Manual
只搜寻这本书
以 PDF 格式下载本书
CHAPTER 4

Audio Test (audio)


audio test verifies the hardware and software components of the audio subsystem. This test supports all Sun audio implementations.
The audio device is an exclusive use device. Only one process or application can interface with it at a time. This test is not scalable.
The availability of the following subtests depends on the particular audio implementation being tested.

audio Subtests

TABLE 4-1 audio
SubtestDescription
Record/Play TestThis test plays and records one second of data. No data checking is
done. This test is run on all audio implementations
Crystal TestThe crystal test measures the accuracy of the crystal that generates the sample rate clock. It does this by playing a one-second signal and then measuring the actual time required to play the signal. This measurement is performed for each of the eight standard sample rates. This test is available for dbri(7) and audiocs(7) audio implementations
Loopback TestsThis test verifies the functionality and signal quality of the audio ports. The test simultaneously plays and records a known signal. The recorded signal is analyzed for loop gain and signal-to-noise ratio plus distortion. This is repeated at various sample rates, encodings, precisions and channels. The audio ports that are supported depend on the audio implementation under test. The audiocs(7) implementation supports loopbacks from/to headphone, line-out, microphone, and line-in. The dbri(7)/ speakerbox implementation supports fewer ports. The audioamd(7)implementation does not support loopback tests. Most tests require a stereo loopback cable. NOTE: The microphone loopback tests require special hardware and are used by manufacturing centers and special test facilities. Do not invoke the microphone loopback tests unless you have the required hardware
Controls TestThis test verifies the three control buttons on the Sun Speakerbox. The controls test plays music while the user is prompted to press the Volume Down, Volume Up, and Mute buttons in a specific order. If no button is pressed, the music plays for about 30 seconds, then stops, and returns an error. This test is only supported on the dbri(7)/speakerbox implementation
Audio TestThis test plays a 30-second music file out of the speaker or headphone. The user must decide if the test passes or fails. Badly distorted audio, or no audible music indicates a problem. This test is supported on all audio implementations

audio Options

Upon start-up, the SunVTS probe utility determines which audio implementation is present and adjusts the audio option menu appropriately. The possible option menus are as follows:

图形

FIGURE 4-1 audioaudioamd(7)

The audioamd(7) is an 8-bit mono, telephone-quality, audio device.

图形

FIGURE 4-2 audiodbri(7) audio

The speakerbox dbri is a high-quality 16-bit stereo multimedia codec.

图形

FIGURE 4-3 audio dbri(7

with no Speakerbox Attached
This is an on-board, high-quality 16-bit stereo multimedia codec.

图形

FIGURE 4-4 audiodbri(7)

and S240
This is an on-board, high-quality 16-bit stereo multimedia codec.

图形

FIGURE 4-5 audioaudiocs(7)

The audiocs(7)is an on-board, high-quality 16-bit stereo multimedia codec.

图形

FIGURE 4-6 audioaudiocs

The audiocs(7) is an on-board, high-quality 16-bit stereo multimedia codec.

Note - The internal loopbacks are only active if the audio jacks are unused (nothing connected).

Some options can only be selected through the command line. See the command line option descriptions in "audio Command Line Syntax" on page 34.
TABLE 4-2 audio
OptionDescription
Audio testEnables or disables the music play test. This test is enabled by default
Audio OutputSelects the output port for the music play test
VolumeSets the volume for the music play test
TABLE 4-2 audio(Continued)
OptionDescription
Loopback testenables or disables the loopback test. A loopback cable must be installed between the selected ports to run this test. This test is disabled by default
Loopback typeselects the type of loopback test to run
Crystal testenables or disables the crystal test. This test is disabled by default
Controls testenables or disables the speakerbox controls test. This is an interactive test and the user is prompted to press the control buttons on the speakerbox. This test is disabled by default

Note - Do not run the crystal test while running other SunVTS tests. The crystal test is timing-dependent. If the system is too busy, it fails due to time-out errors.


audio Test Modes

TABLE 4-3 audio
Test ModeDescription
Connection TestA simple open and close is done on the audio device. No data is transferred. The test returns a pass if the device can be opened and closed successfully. If the device cannot be opened because it is busy, then it is assumed that the device is successfully connected to another process and the test passes
Functional TestThe record/play test is run and the user can optionally run any of the tests described earlier. In this mode, the test will fail if the device is busy.

If you invoke SunVTS through SyMON, the following Functional Test description applies: The record/play test is run. If the device cannot be opened because it is busy, then it is assumed that the device is successfully connected to another process and the test passes


audio Command Line Syntax

/opt/SUNWvts/bin/audio standard_arguments -o dev=/dev/sound/
<unit_no>,I=/dev ioctl_device, M, L, Q, S,
T=loopback_test_type,X,E,LE,CD,CDD=CD_device_name,
CDT=track_number,CDG=play_gain,CDL=play_time,W,
MF=filename,TF=filename

TABLE 4-4 audio
ArgumentExplanation
dev=/dev/
audio_device
Specifies the audio device to be tested. The
default is dev=/dev/audio
I=/dev/ioctl_deviceSpecifies the audio ioctl device to be tested; the default is

/dev/audioctl.

MEnables the music play test.
LEnables the loopback test.
QEnables the quality test. This option does the same thing as L option except that it prints an extra status message upon completion.
SEnables the speakerbox controls test.
T=loopback_test_typeSpecifies the type of loopback test. The default is 1; the choices are listed below. 0 Speaker/Microphone 1 Line-in/Line-out 2 Headphone/Line-in 3 Headphone/Microphone 4 Speaker/CD-input I1 Internal Line-in/Line-out I2 Internal Spk/Mic I3 Internal Headphone/Aux1

Note: Test types 0, 3, an 4 require special hardware, and are used by manufacturing centers and special test facilities. Do not invoke these tests unless you have the required hardware.

XEnables the Audio Crystal test.
EContinues testing if an error occurs.
TABLE 4-4 audio(Continued)
ArgumentExplanation (Continued)
LELoops on Error. This plays the signal data in a continuous loop.
CDEnables the cdtest. This is for systems with an internal CD-ROM drive. A CD disc with music tracks must be loaded prior to running this test.
CDD=CD_device_nameSpecifies the raw device name for the CD-ROM drive. The default is CDD=/dev/rdsk/c0t6d0s0.
CDT=numberSpecifies the track number of CD-ROM to play. The default is to play the first track on the disc.
CDG=play_gainSpecifies the play gain of the CD Play test (0 to 255). The default is 120.
CDL=play_timeSpecifies the number of seconds to run the CD Play test. The default is 30 seconds.
WShows warning messages during the loopback test.
MF=filenameSelects an optional music file.
TF=filenameSpecifies an optional tolerance file. Note: The tolerance file is used by manufacturing centers and special test facilities. Do not use this option unless you are familiar with the tolerance file format.

audio Error Messages

TABLE 4-5 audio

Error MessageProbable Cause(s)Suggested Action (if applicable)
6000Signal To Noise ratio too low (<name>) on <name>,Loopback cable is missing or faulty

SNR =<number> db, Min SNR =<number> db (<text>)Audio hardware (usually consistent failures)


System software problem (usually intermittent failures)
TABLE 4-5 audio(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
6001Channel Separation too lowLoopback cable is faulty

(<name>), SEP =<number> db, Min SEP =<number> db (<text>)Audio hardware (usually consistent failures)


System software problem (usually intermittent failures)
6002Loop gain is out of range (<name>), <name> GAINLoopback cable is missing or faulty

=<number> db, Min =<number> Max =<number> db (<text>)Audio hardware (usually consistent failures)


System software problem (usually intermittent failures)
8000Must be super user (root) to executeThe user does not have root privileges.
8012Invalid audio device (<device_name>) for Crystal testThe crystal test is not supported on the system audio device
8013Invalid audio device (<device_name>) for Controls testThe system audio device does not support a speakerbox
8014Invalid audio device (<device_name>) for Loopback Quality testNo loopback tests are supported on the system audio device
8015Invalid audio device (<device_name>) for Loopback Quality testThe specified loopback test is not supported on the system audio device

(T=<number>)The specified loopback type is not supported on this audio device
8020Incomplete button press sequenceThe required button presses were not detected in the time allowed
8023Underrun/Overrun error failureThe audio driver detected underrun or overrun errors while transferring data to the audio device. These errors usually happen when the loopback test is run while there is heavy system activity
TABLE 4-5 audio(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
8027<name>:The system call is hanging

'<name>(<name>=<number>,
<name>=<number>,
<name>=<number>)' system
Audio hardware (usually
consistent failures)


call timeout. No response after <number> seconds. Device = <device_name>System software problem (usually intermittent failures)
8028Audio crystal test did not complete in the expected time, rate = <number> Hz, time = <number> usecs, min = <number>, max = <number>Excessive loading on the systemDisable all other tests and try again
8029Speaker is an invalid output port for deviceThe system does not have an on-board speaker
8032Failed ioctl <name> (<error_message>)The ioctl( ) system call failed.See the appended error message
8033Failed mmap
(<error_message>)
The mmap( ) system call failed.See the appended error
message
8034Failed fstat
(<error_message>)
The fstat( ) system call failed.See the appended error
message
8035Failed ftruncate
(<error_message>)
The ftruncate( ) system call
failed.
See the appended error
message
8036Write to audio device returned error condition (<error_message>)The write( ) system call failed.See the appended error message
8037Read from audio device returned error condition (<error_message>)The read( ) system call failed.See the appended error message
8038Failed to allocate <number> bytes of memory (<error_message>)The memory allocation system call failed, most likely due to a lack of system memory resource.See the appended error message
8051Unknown audio device (name=<device_name>, config=<name>)

8052Unable to get platform name

8053Unknown architecture/audio = <name> / <device_name>

TABLE 4-5 audio(Continued)
Error MessageProbable Cause(s)Suggested Action (if applicable)
8055   Could not open

The open( ) system call failed Examine system message
<device_name>:                                                files (/var/adm/messages)

<error_message>
Device does not respond
for other information
No mmcodec device found
Unable to communicate with speakerbox
8075Invalid audio file formatSpecified audio file is not in
expected format
8077Invalid audio encodingAn unknown audio encoding
type was specified
8090Only one <name> loopback
can be selected at a time
The user specified more than
one loopback test on the same
port
8091Cannot enable loopback
testing without selecting
a loopback type
The user enabled loopback
testing but did not specify
a loopback type