;*****************************************************************************
;
; CWCAUDIO.INF - Device description file for Windows 95 Plug-N-Play
;                installation of the CS429x driver files.
;
; Copyright (c) 1996-1999 Crystal Semiconductor Corp.
;
;*****************************************************************************

;=============================================================================
; This CWCAUDIO.INF file has been customized to comply with HP standards for 
; the BIKUTSI project which uses CS4299 Codec as the Audio Solution
; Date Changed : November 24 - 1999.
; By:            Allam Steitieh.
;=============================================================================


[Version]
Signature="$WINDOWS NT$"
ClassGuid={4D36E96C-E325-11CE-BFC1-08002BE10318}
Class=MEDIA
provider=Crystal

;----------------------- File information (for cleanup)-----------------------
[SourceDisksNames]
1=%Disk1Name%

[SourceDisksFiles]
CWANTR3.dll = 1
CWANTR0.sys = 1
CWAAUDIO.INF = 1
midimap.cfg = 1   ; NT3.51 MIDI channel mapping support


[DestinationDirs]
; 10=DIRID_WINDOWS, 11=DIRID_SYSTEM, 12=DIRID_DRIVERS
DefaultDestDir = 11
SYSTEM32.CopyList = 11  ; User mode drivers
DRIVERS.CopyList = 12  ; Kernel mode drivers

[SYSTEM32.CopyList]
CWANTR3.dll
CWAAUDIO.INF
midimap.cfg    ; NT3.51 MIDI channel mapping support

[DRIVERS.CopyList]
CWANTR0.sys


;------------- Oemsetup.inf information --------------------------------------
[OEMSETUP.INF]
;
; - Crystal Audio CODEC "wave,mixer" registration information
;
HKLM,%KEY_MSDRV%\drivers.desc,CWANTR3.dll,,%ProductName%
HKLM,%KEY_MSDRV%\Drivers32,mixer,,CWANTR3.dll
HKLM,%KEY_MSDRV%\Drivers32,wave,,CWANTR3.dll
;
; - MIDI NT3.51 channel mapping support
;
;HKLM,Software\Microsoft\Windows NT\CurrentVersion\Midimap,Mapping Name,,%Mm351defaultChannelMapName%


;------------- Device information -------------------------------------------
[Manufacturer]
%CSMfgName%=Crystal

[Crystal]
%CS4297.DeviceDesc%=CS4297_Device,PCI\VEN_8086&DEV_2415, PCI\VEN_8086&DEV_2425

[CS4297_Device.NT]
CopyFiles=SYSTEM32.CopyList,DRIVERS.CopyList
DelReg=MISC.DelReg,SysList.DelReg
AddReg=SysList.AddReg,Mixer.AddReg


;------------- Registry information -----------------------------------------
[SysList.DelReg]
HKLM,SYSTEM\CurrentControlSet\Services\CWANTR0,,,

[MISC.DelReg]
; Midi description in CP/Multimedia/MIDI property page sheet
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\CWANTR3.dll<0000>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\CWANTR3.dll<0001>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\CWANTR3.dll<0002>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\CWANTR3.dll<0003>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\mmdrv.dll<0000>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\mmdrv.dll<0001>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\mmdrv.dll<0002>,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\MIDI\mmdrv.dll<0003>,,,
; SoundFusion entry in Uninstall
;HKLM,%KEY_UNINSTALL%\SoundFusion,,,

[SysList.AddReg]
;------------------ CWANTR0.sys --------------------
HKLM,%KEY_CWANTR0%,ErrorControl,REG_DWORD,0x1
HKLM,%KEY_CWANTR0%,Group,,"Base"
HKLM,%KEY_CWANTR0%,ImagePath,,"\SystemRoot\System32\drivers\CWANTR0.sys"
HKLM,%KEY_CWANTR0%,Start,REG_DWORD,0x1
HKLM,%KEY_CWANTR0%,Type,REG_DWORD,0x1
;HKLM,%KEY_CWANTR0%,DependOnService,REG_MULTI_SZ,
;HKLM,%KEY_CWANTR0%,DependOnGroup,REG_MULTI_SZ,

[Mixer.AddReg]		; these reg_binary values are in hex
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
;----------------- HP Changes -------------------
;          Disable the Headphone Mixer
;-------------------------------------------------------
HKLM,%KEY_BASE%,HeadphoneEnabled,1,00,00,00,00
;---------------- END HP Changes -----------------------

;-------------------- HP Changes -----------------------
;             Disable the Mono Out Mixer
;-------------------------------------------------------
HKLM,%KEY_BASE%,MonoOutEnabled,1,00,00,00,00
;---------------- END HP Changes -----------------------

HKLM,%KEY_BASE%,RecordEnabled,1,01,00,00,00

; Change these to enable/disable lines on all panels.

;----------------- HP Changes --------------------------
; Disable the Video, Phone, Aux, Stereo Mix, Mono Mix,
; Pc Beep & 3d Sliders in the Master Out Mixer.
;-------------------------------------------------------
HKLM,%KEY_BASE%,VideoEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,PhoneEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,AuxEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,StereoMixEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,MonoMixEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,PcBeepEnabled,1,00,00,00,00
HKLM,%KEY_BASE%,3dEnabled,1,00,00,00,00
;---------------- END HP Changes -----------------------

HKLM,%KEY_BASE%,MicEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,CdEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,LineInEnabled,1,01,00,00,00
HKLM,%KEY_BASE%,WaveOutEnabled,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).


;--------------------------  HP Changes ----------------------
; Disable Alternate Mic & Set the Mic Boost as the Default 
;-------------------------------------------------------------
;HKLM,%KEY_BASE%,MHMR_MicAlternateMicValue,1,00,00,00,00
HKLM,%KEY_BASE%,MHMR_MicBoostValue,1,01,00,00,00
;------------------------ END HP Changes ---------------------

;
; 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

;
; 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
;-----------------------------------------------------------------------------
; 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

[Strings]
;Non-localized strings
KEY_MSDOS="SOFTWARE\Microsoft\Windows\CurrentVersion\MS-DOSOptions"
KEY_IOC="SYSTEM\CurrentControlSet\Control\MediaResources\InstallOptionalComponents"
KEY_RUN="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_BASE="SYSTEM\\CurrentControlSet\\Services\\cwantr0\\CS429x"
KEY_MEDIA="SYSTEM\CurrentControlSet\Services\Class\MEDIA"
KEY_SOUNDMAPPER="Software\Microsoft\Multimedia\Sound Mapper"
KEY_MSDRV=Software\Microsoft\Windows NT\CurrentVersion
KEY_SRVC=SYSTEM\CurrentControlSet\Services
KEY_CWANTR0=%KEY_SRVC%\CWANTR0

;Localized strings
MediaClassName="Sound, video and game controllers"
CSMfgName="Crystal Semiconductor Corporation"
CS4297.DeviceDesc="Crystal Audio Codec"

ProductName="Crystal Audio Codec"
MuteName="Mute"
VolumeName="Volume"
MasterOutLongName="Master Out"
MasterOutShortName="Master"
HeadphoneLongName="Headphones"
HeadphoneShortName="Headphones"
MonoOutLongName="Mono Out"
MonoOutShortName="Mono Out"
RecordLongName="Record"
RecordShortName="Record"
RecordMuxLongName="Input Mux"
RecordMuxShortName="Mux"
VideoLongName="Video"
VideoShortName="Video"
MicLongName="Microphone"
MicShortName="Mic"
MicAltMicLongName="Alternate Microphone"
MicAltMicShortName="Alt Mic"
CdLongName="CD"
CdShortName="CD"
WaveOutLongName="Wave"
WaveOutShortName="Wave"
PcBeepLongName="PC Beep"
PcBeepShortName="PC Beep"
PhoneLongName="Phone"
PhoneShortName="Phone"
LineInLongName="Line In"
LineInShortName="Line In"
StereoMixLongName="Stereo Mix"
StereoMixShortName="Stereo Mix"
MonoMixLongName="Mono Mix"
MonoMixShortName="Mono Mix"
MicBoostLongName="Microphone Boost (+20 dB)"
MicBoostShortName="Mic Boost"
AuxLongName="Aux"
AuxShortName="Aux"
MicToMonoLongName="Mic to Mono"
MicToMonoShortName="Mic to Mono"
3dLongName="Crystal 3D"
3dShortName="3D"
3dDepthLongName="Depth"
3dDepthShortName="Depth"
3dEnabledLongName="Crystal 3D Enabled"
3dEnabledShortName="Enabled"