;*****************************************************************************
;
; CWAAUDIO.INF - Device description file for Windows 95 Plug-n-Play
;                installation of the AC'97 ICH driver files (Intel 810/820/
;                440MX).
;
; Copyright (c) 1998-1999 Crystal Semiconductor Corp.
;
;*****************************************************************************

[Version]
Signature="$CHICAGO$"
Class=MEDIA
Provider=%String0%
CatalogFile=PV4020.CAT

[ClassInstall]
AddReg=Class.AddReg		;; see Class.AddReg below

[Class.AddReg]
HKR,,,,%MediaClassName%
HKR,,Icon,,"-1"
HKR,,Installer,,mmci.dll	

[DestinationDirs]
Cwcdata.CopyList = 10,cwcdata
DefaultDestDir=11		; %windir%\system

[Manufacturer]
%String1%=CRYSTAL		;; see CRYSTAL below

[CRYSTAL]
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2415&SUBSYS_59334352
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2415&SUBSYS_8086574C
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2415&SUBSYS_80865643
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2425&SUBSYS_59334352
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_7195&SUBSYS_59334352
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2415 ; Whitney
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_2425 ; Camino
%DeviceDesc%=Whitney_Install,PCI\VEN_8086&DEV_7195 ; Banister
%DeviceDesc%=Whitney_Install,PCI\VEN_1039&DEV_7012 ; SiS Audio
;%BlasterDesc%=Blaster_Device, CWADOS\BLASTER

[PreCopySection]
HKR,,NoSetupUI,,1

[Whitney_Install]
CopyFiles=Whitney.CopyList,Cwcdata.CopyList,CSBlaster.CopyList
AddReg=Whitney.AddReg,Mixer.AddReg

;[Blaster_Device]
;CopyFiles=CSBlaster.CopyList
;AddReg=CSBlaster.AddReg


[Whitney.CopyList]
cwaw95r3.drv,,
cwaw95r0.vxd,,

;[CSBlaster.CopyList]
;cwados.vxd,,
;cwaenum.vxd,,

[Cwcdata.CopyList]
cwalang.dat,,

[Whitney.AddReg]
HKR,,DevLoader,,mmdevldr.vxd
HKR,,Driver,,cwaw95r0.vxd
HKR,Drivers,,,
HKR,Drivers,MIGRATED,,0
HKR,Drivers,SubClasses,,"mixer,wave"
HKR,Drivers\mixer,,,
HKR,Drivers\wave,,,
;; Wave Driver
HKR,Drivers\wave\cwaw95r3.drv,Driver,,cwaw95r3.drv
HKR,Drivers\wave\cwaw95r3.drv,Description,,%DeviceDesc%
;; Mixer Driver
HKR,Drivers\mixer\cwaw95r3.drv,Driver,,cwaw95r3.drv
HKR,Drivers\mixer\cwaw95r3.drv,Description,,%DeviceDesc%

HKLM,%KEY_IOC%\Vol,,,
HKLM,%KEY_IOC%\ACM,,,
HKLM,%KEY_IOC%\Rec,,,
HKLM,%KEY_IOC%\MPlay,,,
HKLM,%KEY_IOC%\CDPlayer,,,
HKLM,%KEY_IOC%\Clips,,,

[Mixer.AddReg]
;-----------------------------------------------------------------------------
; Miscellaneous
;-----------------------------------------------------------------------------
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,SystemTray,,"SysTray.Exe"
HKLM,%KEY_BASE%\Install,WinDir,,%10%

;-----------------------------------------------------------------------------
; Mixer stuff.
;-----------------------------------------------------------------------------
; Strings...These will be removed once the universal translation support is
; added.
HKLM,%KEY_BASE%,ProductName,,"Crystal Audio Codec"
HKLM,%KEY_BASE%,MuteName,,"Mute"
HKLM,%KEY_BASE%,VolumeName,,"Volume"
HKLM,%KEY_BASE%,MasterOutLongName,,"Master Out"
HKLM,%KEY_BASE%,MasterOutShortName,,"Master"
HKLM,%KEY_BASE%,HeadphoneLongName,,"Headphones"
HKLM,%KEY_BASE%,HeadphoneShortName,,"Headphones"
HKLM,%KEY_BASE%,MonoOutLongName,,"Mono Out"
HKLM,%KEY_BASE%,MonoOutShortName,,"Mono Out"
HKLM,%KEY_BASE%,RecordLongName,,"Record"
HKLM,%KEY_BASE%,RecordShortName,,"Record"
HKLM,%KEY_BASE%,RecordMuxLongName,,"Input Mux"
HKLM,%KEY_BASE%,RecordMuxShortName,,"Mux"
HKLM,%KEY_BASE%,VideoLongName,,"Video"
HKLM,%KEY_BASE%,VideoShortName,,"Video"
HKLM,%KEY_BASE%,MicLongName,,"Microphone"
HKLM,%KEY_BASE%,MicShortName,,"Mic"
HKLM,%KEY_BASE%,MicAltMicLongName,,"Alternate Microphone"
HKLM,%KEY_BASE%,MicAltMicShortName,,"Alt Mic"
HKLM,%KEY_BASE%,CdLongName,,"CD"
HKLM,%KEY_BASE%,CdShortName,,"CD"
HKLM,%KEY_BASE%,WaveOutLongName,,"Wave"
HKLM,%KEY_BASE%,WaveOutShortName,,"Wave"
HKLM,%KEY_BASE%,PcBeepLongName,,"PC Beep"
HKLM,%KEY_BASE%,PcBeepShortName,,"PC Beep"
HKLM,%KEY_BASE%,PhoneLongName,,"Phone"
HKLM,%KEY_BASE%,PhoneShortName,,"Phone"
HKLM,%KEY_BASE%,LineInLongName,,"Line In"
HKLM,%KEY_BASE%,LineInShortName,,"Line In"
HKLM,%KEY_BASE%,StereoMixLongName,,"Stereo Mix"
HKLM,%KEY_BASE%,StereoMixShortName,,"Stereo Mix"
HKLM,%KEY_BASE%,MonoMixLongName,,"Mono Mix"
HKLM,%KEY_BASE%,MonoMixShortName,,"Mono Mix"
HKLM,%KEY_BASE%,MicBoostLongName,,"Microphone Boost (+20 dB)"
HKLM,%KEY_BASE%,MicBoostShortName,,"Mic Boost"
HKLM,%KEY_BASE%,AuxLongName,,"Aux"
HKLM,%KEY_BASE%,AuxShortName,,"Aux"
HKLM,%KEY_BASE%,MicToMonoLongName,,"Mic to Mono"
HKLM,%KEY_BASE%,MicToMonoShortName,,"Mic to Mono"
HKLM,%KEY_BASE%,3dLongName,,"Crystal 3D"
HKLM,%KEY_BASE%,3dShortName,,"3D"
HKLM,%KEY_BASE%,3dDepthLongName,,"Depth"
HKLM,%KEY_BASE%,3dDepthShortName,,"Depth"
HKLM,%KEY_BASE%,3dEnabledLongName,,"Crystal 3D Enabled"
HKLM,%KEY_BASE%,3dEnabledShortName,,"Enabled"

; Change these to enable/disable entire panels.
HKLM,%KEY_BASE%,MasterOutEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,HeadphoneEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,MonoOutEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,RecordEnabled,1,01,00,00,00

; Change these to enable/disable lines on all panels.
HKLM,%KEY_BASE%,VideoEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,MicEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,CdEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,PhoneEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,LineInEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,AuxEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,StereoMixEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,MonoMixEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,WaveOutEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,PcBeepEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,3dEnabled,1,01,00,00,00

; Change these to enable/disable advanced controls.
HKLM,%KEY_BASE%,MicToMonoDisable,1,00,00,00,00
HKLM,%KEY_BASE%,AltMicDisable,1,00,00,00,00
HKLM,%KEY_BASE%,MicBoostDisable,1,00,00,00,00

; Values for controls specific to one output panel (master out, headphone out,
; or mono out).
HKLM,%KEY_BASE%,MasterOutMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MasterOutVolumeValue,1,ff,ff,00,00,ff,ff,00,00
HKLM,%KEY_BASE%,HeadphoneMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,HeadphoneVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MonoOutMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MonoOutVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,MonoOutMicToMonoValue,1,00,00,00,00

; Values for controls shared among multiple output panels (master out,
; headphone out, and mono out).
HKLM,%KEY_BASE%,MHM_VideoMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_VideoVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MHM_MicMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_MicVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,MHM_CdMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_CdVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MHM_WaveOutMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_WaveOutVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MHM_PcBeepMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_PcBeepVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,MHM_PhoneMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_PhoneVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,MHM_LineInMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_LineInVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MHM_AuxMuteValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHM_AuxVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,MHM_3dDepthValue,1,af,af,00,00
HKLM,%KEY_BASE%,MHM_3dEnabledValue,1,01,00,00,00

; Values for controls specific to the record panel.
HKLM,%KEY_BASE%,RecordMuxValue,1,00,00,00,00
HKLM,%KEY_BASE%,R_VideoVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,R_MicVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,R_CdVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,R_PhoneVolumeValue,1,af,af,00,00
HKLM,%KEY_BASE%,R_LineInVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,R_AuxVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,R_StereoMixVolumeValue,1,af,af,00,00,af,af,00,00
HKLM,%KEY_BASE%,R_MonoMixVolumeValue,1,af,af,00,00

; Values for controls shared among all panels (master out, headphone out,
; mono out, and record panels).
HKLM,%KEY_BASE%,MHMR_MicAlternateMicValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHMR_MicBoostValue,1,00,00,00,00

;
; Table Driven Volumes
;
; This allows you to customize the volume controls to values that work best
; for your hardware.  The tables indicate what values are written to the HW
; for mixer slider positions.  The first number in the table is the value
; written to the HW when the slider is at its smallest value, and the last
; number in the table is the value written to the HW when the slider is at its
; largest value.  The tables use hexadecimal values which correspond to the
; following gain/attenuation levels (for all these volumes, one step
; corresponds to 1.5 dB):
;
; Master, Headphone and MonoOut
;    0 =   0.0 dB
;    1 =  -1.5 dB
;        ...
;   63 = -94.5 dB
;   
; Phone, Aux, CD, Line In, Mic, Mono In and Video
;    0 = +12.0 dB
;    1 = +10.5 dB
;        ...
;    8 =   0.0 dB
;        ...
;   31 = -34.5 dB
;
; RecordIn (record volume used for any source being recorded)
;    0 =   0.0 dB
;    1 =  +1.5 dB
;        ...
;   15 = +22.5 dB 
;
HKLM,%KEY_BASE%,MasterOutVolumeTable,1,3f,3a,36,33,30,2d,2a,27,24,22,20,1e,1c,1a,18,16,14,13,12,11,11,10,10,f,f,e,e,d,d,c,c,b,b,a,a,9,9,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,1,0,0,0
HKLM,%KEY_BASE%,HeadphoneOutVolumeTable,1,3f,3a,36,33,30,2d,2a,27,24,22,20,1e,1c,1a,18,16,14,13,12,11,11,10,10,f,f,e,e,d,d,c,c,b,b,a,a,9,9,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,1,0,0,0
HKLM,%KEY_BASE%,MonoOutVolumeTable,1,3f,3a,36,33,30,2d,2a,27,24,22,20,1e,1c,1a,18,16,14,13,12,11,11,10,10,f,f,e,e,d,d,c,c,b,b,a,a,9,9,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,1,0,0,0
HKLM,%KEY_BASE%,MHM_PhoneVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_AuxVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_CdVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_LineInVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_MicVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_MonoVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_VideoVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
HKLM,%KEY_BASE%,MHM_WaveOutVolumeTable,1,1f,1e,1d,1c,1b,1a,19,18,17,16,15,14,13,12,11,10,f,e,d,c,b,a,9,8
; The PCBEEP Vol register have only four volume bits, unlike the other volume registers
HKLM,%KEY_BASE%,MHM_PcBeepVolumeTable,1,f,e,d,c,b,a,9,8,7,6,5,4,3,2,1,0
HKLM,%KEY_BASE%,R_VolumeTable,1,0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f

;-----------------------------------------------------------------------------
; S/P-DIF control
;-----------------------------------------------------------------------------
HKLM,%KEY_BASE%,SpdifEnabled,1,01,00,00,00

;-----------------------------------------------------------------------------
; MISC control
;-----------------------------------------------------------------------------

; Some BIOSs do not turn AC-link back on when rebooting machine. (01 = Turn
; Ac-link off when power down, 00 = Do not turn Ac-link off).
HKLM,%KEY_BASE%,ACLinkOff,1,01,00,00,00

; Some BIOSs do not do coldresets of ICH. (00 = DO COLDRESET, 01 = NO
;  COLDRESET).
HKLM,%KEY_BASE%,DisableColdRest,1,00,00,00,00

;
; Override driver-default value of register 68h for S/P-DIF control.
; The driver default is 0000h if S/P-DIF is disabled, or 0xC006 if S/P-DIF
; is enabled via SpdifEnabled.
;
;HKLM,%KEY_BASE%,SpdifRegValue,1,06,00,00,c0

[CSBlaster.AddReg]
HKR,,Driver,,cwaenum.vxd
HKR,,DriverDesc,,%BlasterDesc%


[SourceDisksNames]
1="Crystal Audio Codec Driver Disk ",, 0001
73170=WHQL,"",73170

[SourceDisksFiles]
cwaw95r3.drv=1
cwaw95r0.vxd=1
cwaenum.vxd=1
cwados.vxd=1
cwalang.dat=1
PV4010.CAT=73170

[Strings]
String0="Crystal Semiconductor"
String1="Crystal Semiconductor"
KEY_IOC="SYSTEM\CurrentControlSet\Control\MediaResources\InstallOptionalComponents"
KEY_BASE="SOFTWARE\Crystal Semiconductor\CS461x"
DeviceDesc="Crystal Audio Codec"
MediaClassName="Sound, video and game controllers"
