The audiotest verifies the hardware and software components of the audio subsystem. This test supports all Sun audio implementations.
This test will work with exclusive access devices (only one process or application available at a time), or with newer audio devices which support the software mixer feature available in the Solaris 8 operating environment.
audiotest turns the mixer off automatically at run time. Shut down all audio applications before running audiotest, as Online mode is not supported. The mixer is restored after testing.
This test is not scalable.
The availability of the following subtests depends on the particular audio implementation being tested.
Subtest |
Description |
---|---|
Record/Play test |
This test plays and records one second of data. It does not check data. This test is run on all audio implementations. |
Crystal test |
The 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 tests |
This 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 test |
This 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 in 30 seconds the test fails. This test is only supported on the dbri(7)/speakerbox implementation. |
Audio test |
This test plays a 30-second music file out of the speaker or headphone. The full benefit of this test is only realized if the user listens to the output. Badly distorted audio or inaudible music indicates a problem. This test is supported on all audio implementations. |
To reach the dialog box below, right-click on the test name in the System Map and select Test Parameter Options. If you do not see this test in the System Map, you might need to expand the collapsed groups, or your system may not include the device appropriate to this test. Refer to the SunVTS User's Guide for more details.
Upon startup, the SunVTS probe utility determines which audio implementation is present and adjusts the audiotest Option menu appropriately. Your dialog box may look different than the one pictured here, but will contain some or all of these options.
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 "audiotest Command-Line Syntax".
Table 5-2 audiotest Options
Option |
Description |
---|---|
Audio Output |
Selects the output port for the Music Play test. |
Volume |
Sets the volume for the Music Play test. |
Audio test |
Enables or disables the Music Play test. This test is enabled by default. |
Loopback test |
Enables or disables the Loopback test. A loopback cable must be installed between the selected ports to run external loopback tests. This test is disabled by default. |
Loopback type |
Selects the type of Loopback test to run. |
Crystal test |
Enables or disables the Crystal test. This test is disabled by default. |
Controls test |
Enables or disables the speakerbox Controls test. This is an interactive test. The user is prompted to press the control buttons on the speakerbox. This test is disabled by default. |
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.
Test Mode |
Supported? |
Description |
---|---|---|
Connection test |
Yes |
A 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 (Offline) |
Yes |
The 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. |
/opt/SUNWvts/bin/audiotest standard_arguments -o dev=/dev/sound/unit_no,I=/devioctl_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 5-4 audiotest Command-Line Syntax
64-bit tests are located in the sparcv9 subdirectory: /opt/SUNWvts/bin/sparcv9/testname. If the test is not present in this directory, then it may only be available as a 32-bit test. For more information refer to "32-Bit and 64-Bit Tests".