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

;******************************************************************************
; Version Section
;------------------------------------------------------------------------------
[Version]
Signature="$Windows NT$"
DriverVer=05/17/2013,1.34.12.0
Provider=%S_Provider%

; private device class
Class=micu_SetupClass
ClassGUID={67F997EA-DF2F-4981-9186-13B2D023D052}

CatalogFile=micu.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_0043



;******************************************************************************
; 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)
; 
; Note: One group!
;
; 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%



[_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%,    "micul2.ihx"
HKR, "BoardID\00000001",  L2BlImageCRC,  %REG_DWORD%, 0xB8A57185
HKR, "BoardID\00000001",  AppImage,      %REG_SZ%,    "micuap.ihx"
HKR, "BoardID\00000001",  AppImageCRC,   %REG_DWORD%, 0x7D5943E0
HKR, "BoardID\00000001",  FpgaImage,     %REG_SZ%,    "micucf.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%, "MicU 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%, "{92D905AA-53E4-45e2-A45F-8A7929CC1C90}"

; 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
micu.sys,,,0x00000004
; firmware files
micul2.ihx,,,0x00000004
micuap.ihx,,,0x00000004
micucf.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 !
micu.sys=1
micul2.ihx=1
micuap.ihx=1
micucf.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="MicU Devices"


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

; device description
S_DeviceDesc="MicU Device"


; disk name
S_DiskName="MicU driver disk"

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



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