;/*++
;
;Copyright (c) Realtek Semiconductor Corp.  All rights reserved.
;
;Module Name:
;
;    RTII2SAC.INF
;
;Abstract:
;    INF file for installing Realtek I2S audio codec device drivers
;
;--*/
[Version]
Signature   = "$WINDOWS NT$"
Class       = MEDIA
ClassGuid   = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    = %REALTEK%
DriverVer=10/30/2015,6.4.10147.534
CatalogFile = rtii2sac.cat


[DestinationDirs]
DefaultDestDir = 12

;********************************
; Codec Device  Install Section
;********************************

[Manufacturer]
%MfgName%=Realtek,NTx86,NTamd64

; For Win2K
[Realtek]
; DisplayName                   Section           DeviceId
; -----------                   -------           --------
;%CodecDevice.DeviceDesc%=Codec_Device, {4d36e96c-e325-11ce-bfc1-08002be10318}\Rti2sCodec
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\INTCCFFD
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5640
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645

[Realtek.NTx86]
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\INTCCFFD
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5640
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645

; x64
[Realtek.NTamd64]
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\INTCCFFD
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5640
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645

[Codec_Device.NT]
CopyFiles=Codec_Device.NT.Copy
AddReg=Codec_Device.NT.AddReg
Reboot

[Codec_Device.NT.Copy]
rtii2sac.sys

[Codec_Device.NT.HW]
;AddReg=Codec_Device.NT.HW.AddReg

[Codec_Device.NT.AddReg]
;For CHT = 0, BYT = 1
HKR, General, MultiLevelJD, 0x00010001, 0 ; single level JD
;HKR, General, MultiLevelJD, 0x00010001, 1 ; multi level JD
;For CHT-Main = 1, For CHT-CR = 2 
;HKR, General, I2S_interface, 0x00010001, 1 ; I2S 1
HKR, General, I2S_interface, 0x00010001, 2 ; I2S 2
;For the current platform DMIC 2 is enabled
HKR, General, DMIC, 0x00010001, 1 ; DMIC 1
;HKR, General, DMIC, 0x00010001, 2 ; DMIC 2
HKR, General, platform, 0x00010001, 4 ;BYT:1, CHT:2, BYT-CR:3, CHT-CR:4
;1= TDM/PCM mode enabled, 0 = I2S mode enabled
HKR, General, enable_TDM, 0x00010001, 0 ; 1:enable. 0:disable

;-------------- Service installation

[Codec_Device.NT.Services]
AddService = rtii2sac, %SPSVCINST_ASSOCSERVICE%, rtii2sac_Service_Inst

[rtii2sac_Service_Inst]
DisplayName     = %CodecDevice.SVCDESC%
ServiceType     = 1               ; SERVICE_KERNEL_DRIVER
StartType       = 3               ; SERVICE_DEMAND_START
ErrorControl    = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\rtii2sac.sys
LoadOrderGroup  = Extended Base


[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
rtii2sac.sys = 1,,

[SignatureAttributes]
rtii2sac.sys=SignatureAttributes.DRM

[SignatureAttributes.DRM]
DRMLevel=1300

[SignatureAttributes.PETrust]
PETrust=true

;x64
[Codec_Device.NTamd64]
CopyFiles=Codec_Device.NTamd64.Copy
AddReg=Codec_Device.NTamd64.AddReg
Reboot

[Codec_Device.NTamd64.Copy]
rtii2sac.sys

[Codec_Device.NTamd64.HW]
;AddReg=Codec_Device.NTamd64.HW.AddReg

[Codec_Device.NTamd64.AddReg]
;For CHT = 0, BYT = 1
HKR, General, MultiLevelJD, 0x00010001, 0 ; single level JD
;HKR, General, MultiLevelJD, 0x00010001, 1 ; multi level JD
;For CHT-Main = 1, For CHT-CR = 2 
;HKR, General, I2S_interface, 0x00010001, 1 ; I2S 1
HKR, General, I2S_interface, 0x00010001, 2 ; I2S 2
;For the current platform DMIC 2 is enabled
HKR, General, DMIC, 0x00010001, 1 ; DMIC 1
;HKR, General, DMIC, 0x00010001, 2 ; DMIC 2
HKR, General, platform, 0x00010001, 4 ;BYT:1, CHT:2, BYT-CR:3, CHT-CR:4
;1= TDM/PCM mode enabled, 0 = I2S mode enabled
HKR, General, enable_TDM, 0x00010001, 0 ; 1:enable. 0:disable

[Codec_Device.NTamd64.Services]
AddService = rtii2sac64, %SPSVCINST_ASSOCSERVICE%, rtii2sac_Service_Inst_NTamd64

[rtii2sac_Service_Inst_NTamd64]
DisplayName     = %CodecDevice.SVCDESC%
ServiceType     = 1               ; SERVICE_KERNEL_DRIVER
StartType       = 3               ; SERVICE_DEMAND_START
ErrorControl    = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\rtii2sac.sys
LoadOrderGroup  = Extended Base

[Strings]
SPSVCINST_ASSOCSERVICE   = 0x00000002
REALTEK                  = "REALTEK"
MfgName                  = "Realtek Semiconductor Corp."
DiskId1                  = "Realtek Codec Device Installation Disk #1"
CodecDevice.DeviceDesc   = "Realtek I2S Audio Codec"
CodecDevice.SVCDESC      = "Realtek I2S Audio Codec Device Driver"
