@echo off
@echo. ......... Audio Functionality Testing ........ !!!
cd c:\km10nbu\sigmatel
set test=Audio function Test
del smat.*
physmem >temp.txt
copy set.txt+temp.txt temp.bat
call temp.bat
dos4gw smat21 km10nbu.ini 0x%temp%
if errorlevel 1 goto Fail
set test=Audio Port Sense Test
find "Doing port sense with 0xD,0xE,0xF,0x10 ports occupied" smat.000
if errorlevel 1 goto Fail
find "Doing port sense with 0xE,0xF ports occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: Pin Widget NID 0x10 port not occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: Pin Widget NID 0x0D port not occupied" smat.000
if errorlevel 1 goto Fail
find "PASS: 7 test runs passed" smat.000
if errorlevel 1 goto Fail
goto Pass
:Fail
set status=FAIL
set code=Q01
@echo. %test% %status%
goto end

ass
set status=PASS
cls
@echo. ......... Audio Functionality Test Passed ........ !!!
:END
