;
; Copyright (c) 2007-2014 Icon Global
;
; Utrack setup information file
;
; This file supports:
;     Windows XP
;     Windows Vista
;     Windows 7
;     Windows 8
;

;******************************************************************************
; Version Section
;------------------------------------------------------------------------------
[Version]
Signature="$Windows NT$"
DriverVer=06/05/2014,1.35.20.0
Provider=%S_Provider%

; private device class
Class=utrack_SetupClass
ClassGUID={57C28113-328A-4FEF-83F4-6E01089C734A}

CatalogFile=utrack.cat


;******************************************************************************
; Install private class
;------------------------------------------------------------------------------
[ClassInstall32] 
AddReg=_AddReg_ClassInstall
 
[_AddReg_ClassInstall]
HKR,,,,"%S_DeviceClassDisplayName%"
HKR,,Icon,,"-20"


;******************************************************************************
; Manufacturer
;------------------------------------------------------------------------------
[Manufacturer]
%S_Mfg%=_Models


;******************************************************************************
; Models Section
;------------------------------------------------------------------------------
[_Models]
;
; Modify USB VID and PID below to match with your device.
;
%S_DeviceDesc%=_Install, USB\VID_1D03&PID_0001



;******************************************************************************
; Install Sections
;------------------------------------------------------------------------------
[_Install.ntx86]
CopyFiles=_CopyFiles_sys

[_Install.ntx86.Services]
AddService = %S_ServiceName%, 2, _AddService, _EventLog

[_Install.ntx86.HW]
AddReg=_AddReg_HwSetup, _AddReg_ImageFiles, _AddReg_CustomNames

[_AddService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; MANUAL
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\%S_DriverName%.sys
AddReg=_AddReg_InterfaceName, _AddReg_DriverSettings

[_EventLog]
AddReg=_EventLog_AddReg

[_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\%S_DriverName%.sys"
HKR,,TypesSupported,  %REG_DWORD%, 7



;******************************************************************************
; Registry sections
;------------------------------------------------------------------------------
[_AddReg_HwSetup]
; Various options as an OR combination of the bit masks described below.
; No flag is set by default.
HKR, "HwSetup\Settings",  Flags,  %REG_DWORD%,  0x00000000
;
; Flags:
; 0x00000001 -- I2S format: if set: I2S compatible, if not set: MSB justified
; 0x00000002 -- WCLK source: if set: generate WCLK internally, if not set: use external WCLK
;


;
; Define the supported sample rates.
; For each sample rate specify the hardware port setup to be used.
;
HKR, "HwSetup\44100",  SetupId,  %REG_SZ%,  "LowFs"
HKR, "HwSetup\48000",  SetupId,  %REG_SZ%,  "LowFs"
HKR, "HwSetup\88200",  SetupId,  %REG_SZ%,  "LowFs"
HKR, "HwSetup\96000",  SetupId,  %REG_SZ%,  "LowFs"
HKR, "HwSetup\176400", SetupId,  %REG_SZ%,  "LowFs"
HKR, "HwSetup\192000", SetupId,  %REG_SZ%,  "LowFs"

;
; Hardware port setup for sample rates (44100..192000)
;
; I2S inputs
HKR, "HwSetup\LowFs\I2S_I0",   Type,  %REG_DWORD%,  %I2S_PORT%
; I2S outputs
HKR, "HwSetup\LowFs\I2S_O0",   Type,  %REG_DWORD%,  %I2S_PORT%
HKR, "HwSetup\LowFs\I2S_O1",   Type,  %REG_DWORD%,  %I2S_PORT%

;
; SPDIF ports
;
; SPDIF input
HKR, "HwSetup\LowFs\SPDIF_I0", Type,  %REG_DWORD%,  %SPDIF_PORT%
; SPDIF output
HKR, "HwSetup\LowFs\SPDIF_O0", Type,  %REG_DWORD%,  %SPDIF_PORT%

;
; MIDI ports
;
; MIDI in
HKR, "HwSetup\MIDI_I0",  Type,  %REG_DWORD%,  %MIDI_PORT%
; MIDI out
HKR, "HwSetup\MIDI_O0",  Type,  %REG_DWORD%,  %MIDI_PORT%

[_AddReg_ImageFiles]
; Custom names of image files. Modify the lines below accordingly.
; IMPORTANT: The BoardID value (00000001 below) must match with the value stored in the EEPROM.
HKR, "BoardID\00000001",  L2BlImage,     %REG_SZ%,    "utrackl2.ihx"
HKR, "BoardID\00000001",  L2BlImageCRC,  %REG_DWORD%, 0xAA898796
HKR, "BoardID\00000001",  AppImage,      %REG_SZ%,    "utrackap.ihx"
HKR, "BoardID\00000001",  AppImageCRC,   %REG_DWORD%, 0x6E487A3D
HKR, "BoardID\00000001",  FpgaImage,     %REG_SZ%,    "utrackcf.bin"
HKR, "BoardID\00000001",  FpgaImageCRC,  %REG_DWORD%, 0x5773282C

[_AddReg_CustomNames]
; Custom enumerator name (optional).
; NOTE: The hardware ID set in the [_Models] section in usbpalks.inf must match this string.
;HKR,,KsEnumeratorName, %REG_SZ%, "USBPAL_ENUM"

; Custom WDM device description text (optional).
; This text is shown in the yellow bubble that appears when the WDM device comes up for the first time.
HKR,,KsDeviceDescription, %REG_SZ%, "Utrack WDM Audio Device"



[_AddReg_InterfaceName]
; custom driver interface name, uncommment and replace by your custom GUID, see also usbpal_customization.h
HKR, "Parameters", CustomInterfaceGuid, %REG_SZ%, "{5EE2D3FA-FC7F-4427-8C16-07E4E6BC3412}"

; uncomment the following line to disable the default driver interface name (recommended)
HKR, "Parameters", EnableDefaultInterface,  %REG_DWORD%,  0

[_AddReg_DriverSettings]
; To enable streaming for all devices by default, activate the following line.
HKR, "Parameters\Settings", StreamingMode,  %REG_DWORD%,  1
; Default sample rate
HKR, "Parameters\Settings",  CurrentSampleRate, %REG_DWORD%,  44100
; Default streaming buffer size
HKR, "Parameters\Settings",  StrmBufSize, %REG_DWORD%,  1



;******************************************************************************
; Copy file sections
;------------------------------------------------------------------------------
[_CopyFiles_sys]
; note: no string variable possible in this section !
; driver
utrack.sys,,,0x00000004
; firmware files
utrackl2.ihx,,,0x00000004
utrackap.ihx,,,0x00000004
utrackcf.bin,,,0x00000004


;******************************************************************************
; Destination Directories
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir  = 12  ; %windir%\system32\drivers 
_CopyFiles_sys = 12

;******************************************************************************
; Disk Layout
;------------------------------------------------------------------------------
[SourceDisksNames.x86]
1=%S_DiskName%,,0

[SourceDisksFiles.x86]
; note: no string variable possible in this section !
utrack.sys=1
utrackl2.ihx=1
utrackap.ihx=1
utrackcf.bin=1


;******************************************************************************
; Strings
;------------------------------------------------------------------------------
[Strings]
;
; Non-Localizable Strings, DO NOT MODIFY!
;
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

; hardware port types
UNUSED_PORT = 0
I2S_PORT = 1
DSD_PORT = 2
SPDIF_PORT = 10
MIDI_PORT = 20


;
; Localizable Strings, modify as required
;

; device class display name
S_DeviceClassDisplayName="Utrack Devices"


; provider
S_Provider="Icon Global"
S_Mfg="Icon Global"

; device description
S_DeviceDesc="Utrack Device"


; disk name
S_DiskName="Utrack driver disk"

; service name 
S_ServiceName="utrack"
; driver name (binary executable without .sys extension)
S_DriverName="utrack"



;;;;;;;;;;;;;;;;;;;;;; EOF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
