ALS4000 Audio Card Test Program Version 1.1
Date: 3/09/99
Overview
This document details the testing procedures carried out by the
program MASS4000.EXE on the ALS4000 audio card.
The Program is for ALS4000 PCB mass product auto testing.
You can select following resources to test(form autest.cfg) .
Next time when you test again, it will use the recent selections
to test.
1.Test SB Base I/O Port:
2.Test DMA Channels:
3.Test DMA Snooping:
4.Test MUSIC Command (Ex/Fx command):
5.Test Music Channel (Inter FM syntheizer):
6.Test CD_In Channel (Playback and Recording):
7.Test Line_In Channel (Playback and Recording):
8.Test Mic_In Channel (Playback and Recording):
9.Test ALS4000 Mixer/GCR Register R/W :
10.Test Loopback (Inter FIFO):
11.Test MPU401 Loopback (Internal/External):
12.Test Gameport( Analog joystick ):
You can select what resources you want to test from 'autest.cfg'
file or execute 'set4000.exe' to modify the test condition.
Required Software Files
To run the test program, you will need the program MASS4000.EXE,
the sound test file DA.PCM ; LOOPBACK.VOC;LOOPTEMP.VOC.and the
start up configuration file AUTEST.CFG. and setup the testing
item file SET4000.EXE . and display file EGAVGA.BGI.
All the program and files must be installed
and run in the same directory.
Files List
MASS4000.EXE -- Program
SET4000.EXE -- Set the test items/resource/condition
AUTEST.CFG -- Start up configuration file
AUTEST.LOG -- Test result
DA.PCM -- Sound test file
LOOPBACK.VOC -- Sound test file
LOOPTEMP.VOC -- Sound test file
EGAVGA.BGI -- VGA mode display file.
README.TXT -- This file
MODULE.DOC -- The graph of External MIDI Loopback/Testing-Joystick Module
and a set of connection line
Required Hardware/Software
486 or 586 equipped system
DOS 5.0 or higher ( can't install :EMM386.exe)
ALS4000 Sound Card
A set of connection line ( If doing Line/CD/Mic_in Channel Test)
External MIDI Loopback/Testing-Joystick Module
(If doing External MIDI Loopback/Testing-Joystick Test)
Setting up the Test Environment
Please make sure that the test station does not have any device that
may conflict with the sound card to be tested. For example,DMA 0,1,3;
and I/O Addresses 220H, 240H, 260H, 280H,2A0H, (300H, 310H, 320H,
330H, 340H, 350H, 360H, 370H for MPU401 test). If there is any device
that conflict with the sound card, corresponding test item will fail,
and this doesn't mean problem on hardware.
Set up the software as follows:
Copy test files to the directory of your choice
For Example:
copy all test files from Drive A: to a directory named ALSTEST on
Drive C:
MD C:\ALSTEST
COPY A:*.* C:\ALSTEST
Test Procedures
1. At first, you can setup the wanted testing items (12 items ),and the wanted
testing resource (DMA Channel;SB I/O port and MPU401 I/O port), and passed
conditions (the respone time of Joystick charge/discharge).So you execute
the SET4000.EXE file to select the above description, and when you press
"OK" button, the test setting is saved to AUTEST.CFG file.
The default content of AUTEST.CFG is following:
0 fff 7 1f ff 5 50
0: Show the test information; 1= on ,OR 0= off
fff: Test all(12) items( bit0 : 1=test SB Base port
bit1: 1=test DMA channel; bit2: 1= test DMA Snooping ;...... )
7: Select 3 DMA(0,1,3) Channels to Test (bit0: DMA0; bit1: DMA1... )
1f: Select 5 SB Base I/O Ports(0x220,0x240,0x260,0x280,0x2A0) to Test
(bit0:0x220; bit1:0x240; bit2:0x260 ............. )
ff: Select 8 MPU401 Base I/O Ports(0x300,0x310,0x320,.....0x370) to Test
(bit0:0x300; bit1:0x310; bit2:0x320; bit3:0x330............. )
6: Analog joystick: x1,y1,x2,y2 respone time(Min)
50: Analog joystick: x1,y1,x2,y2 respone time(Max)
( The Min/Max value depend on your CPU speed and PCI clock,so you
must try it to get proper value)
Notice:
the bit of data = 1 : on ( test)
the bit of data = 0 : off ( don't test)
2. Connect the External MIDI Loopback/Testing-Joystick Module and the set of connection
line.
3. To run the test, change to your test files directory and type MASS4000
at the DOS prompt. The MASS4000.EXE file execute the test program according
to the AUTEST.CFG file content.
You can type " MASS4000 ? " to get testing information.
You may rename the program to read GO, or TEST if you wish to speed up typing.
MASS4000 does the following:
SB16 I/O Ports Test
PASS: Base I/O Ports 220H, 240H, 260H, 280H, 2A0H, 2C0H is available
for ALS4000 Audio Card
FAIL: Hardware error occured or the failed I/O Port may be used by
other device
DMA Channel Test
PASS: DMA Channel 0, 1, 3 is available for ALS4000 Audio Card
FAIL: Hardware error occured or the failed DMA Channel may be used
by other device
Important: If the SB16 I/O Ports not tested. These DMA tests uses Base
Port 220H by default,therefore if Base Port 220H fails, then
subsequent tests will seem to fail. One way to check is to
proceed to the SB16 I/O Ports test, then the program will choose
available Base Port.
DMA Snooping Test
PASS: ALS4000 Internal DMA Channel 0, 1, 3 Emulation work normally.
FAIL: Hardware error occured or the failed DMA Channel may be used
by other device
MUSIC Command (Ex/Fx command) Test
PASS: SB 16/ PRO EX/FX command work properly.
FAIL: Hardware error occured.
Music Channel (Inter FM syntheizer) Test
PASS: We program inter FM syntheizer to generate 1kHz sinewave
and recording data(use 44.1KHz) from internal music channel.
Analyze the recording data file(fm.pcm).If the period of file
data is 44 points ,and the rate(slope) of near Max/Min point is
correct , and the Max/Min data value is in some region(value).
We think ALS4000 chip inter FM syntheizer playback properly.
FAIL: Hardware error occured.
Important: The FM Synthesis Test uses I/O port 388h--38BH, if
these settings failed, then the FM Synthesis Test
will fail.
CD/Line/Mic Playback & Recording Test
PASS: We playback 1kHz sinewave(da.pcm) to line_out/speaker_out and recording
data(use 44.1kHz sampling rate) from Line In channel or Mic In Channel or
CD In Channel. Analyze the recording data file(addar.pcm).If the period
of file data is 44 points ,and the rate(slope) of near Max/Min point is
correct , and the Max/Min data value is in some region(value).
We think ALS4000 chip Line/CD/Mic_IN channel playback/recording properly.
FAIL: Hardware error occured or the recording data is saturation (Because of your
amplified circuit gain is too large)
Important: If the SB16 I/O Ports not tested, above tests use Base Port 220H
by default. Because all the recording ( Line In, Mic In or CD In )
use full_duplex,that means it will use two DMA channel. So you
must proceed DMA channel test at first and make sure there are two
DMA channels available at least. Otherwise you will failure all
the tests.
ALS4000 Mixer/GCR Register R/W Test
PASS: ALS4000 internal register read and write properly.
FAIL: ALS4000 Chip Hardware error occured.
ALS4000 Loopback (Inter FIFO) Test
PASS: ALS4000 internal FIFO playback and Recording properly.
FAIL: ALS4000 Chip Hardware error occured.
MPU401 Loopback (Internal/External)Test
Please ensure that an external MIDI loopback module is connected to the
MIDI/Gameport connector.
PASS: MPU401 interface's sending and receiving MIDI Message is OK.
FAIL: MPU401 interface's sending or receiving MIDI Message is error.
Gameport/Analog JoyStick Test
Please ensure that Testing-Joystick module is connected to the MIDI/Gameport
connector.
PASS: The Gameport work properly.
FAIL: Hardware error occured or the RC charge/discharge respone time of gameport
(joystick) is not between the Min an Max value , you can modify the Min/Max
value from executing set4000.exe to set the joystick respone time value,
and try it again.
Usage of ALS4000 Audio Card Test Program
When testing finish; it will display the test result on screen.
Where test result (AUTEST.LOG) is saved:
MASS4000 saves the test result to a file named AUTEST.LOG in
the current directory.
If CD/Line/Mic Playback & Recording Test and Music Channel (Inter FM syntheizer)
Test fail,MASS4000.EXE will produce cross-refer file (for example
:CD.LOG, LINE.LOG, MIC.LOG ,FM.LOG) and recording data file (addar.pcm
or fm.pcm ). You can read the files and know what is the recording data
of the channel.
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.