SunVTS 2.1.3 Test Reference Manual
  Sök endast i den här boken
Ladda ner denna bok i PDF
CHAPTER 3

Audio Test (audio)


The 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 3-1 audio
SubtestDescription
Record/Play TestThis test plays and records one second of data. It does not check
data. 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 ports. 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:

Grafik

FIGURE 3-1 audioaudioamd(7)

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

Grafik

FIGURE 3-2 audiodbri(7) audio

The speakerbox dbri is a high-quality 16-bit stereo multimedia (coder/decoder (codec).

Grafik

FIGURE 3-3 audio dbri(7

without a Speakerbox attached
The on-board DBRI interface is a high-quality, 16-bit stereo multimedia codec.

Grafik

FIGURE 3-4 audiodbri(7)

and S240
The SPARCstation 20 On-board dbri is a high-quality 16-bit stereo multimedia codec.

Grafik

FIGURE 3-5 audioaudiocs(7)

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

Grafik

FIGURE 3-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 42.
TABLE 3-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 3-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 3-3 audio
Test ModeDescription
Connection TestA simple open and close is performed. 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 you can choose to 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 3-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.
LELoops on Error. This plays the signal data in a continuous loop.
TABLE 3-4 audio(Continued)
ArgumentExplanation (Continued)
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 3-5 audio

Error MessageProbable Cause(s)Suggested Action (if applicable)
6000Signal To Noise ratio too low (name) on name, SNR =number db, Min SNR =number db (text)Loopback cable is missing or faulty. Audio hardware (usually consistent failures).

System software problem (usually intermittent failures).


6001Channel Separation too low (name), SEP =number db, Min SEP =number db (text)Loopback cable is faulty. Audio hardware is faulty (usually consistent failures). System software problem (usually intermittent failures).
TABLE 3-5 audio(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
6002Loop gain is out of range (name), name GAIN =number db, Min =number Max =number db (text)Loopback cable is missing or faulty. Audio hardware is faulty (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 test (T=number)The specified loopback test is not supported on the system audio device.

The specified loopback type is not supported on this audio device.


8020Incomplete button press
sequence
The required button presses were
not detected in the time allowed.
8023Underrun/Overrun error
failure
The 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 during
heavy system activity.
8027name: 'name(name=number,The system call is hanging.

name=number, name=number)'
system call timeout. No
response after number
seconds. Device =
Audio hardware (usually consistent
failures).

device_nameSystem software problem (usually
intermittent failures).
TABLE 3-5 audio(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
8028Audio crystal test did not complete in the expected time, rate = number Hz, time = number usecs, min = number, max = numberExcessive loading on the system.Disable 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

8055Could not open device_name: error_messageThe open( ) system call failed Examine system message files (/ var/adm/messages) for other information.

Device does not respond. No mmcodec device found. Unable to communicate with speakerbox.


TABLE 3-5 audio(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
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 timeThe user specified more than one loopback test on the same port.
8091Cannot enable loopback testing without selecting a loopback typeThe user enabled loopback testing but did not specify a loopback type.