;/*++
;
;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=05/09/2014,6.2.9600.4107
CatalogFile = rtii2sac.cat


[DestinationDirs]
DefaultDestDir = 12 ;%SystemRoot%\system32\drivers
Codec_Device_Serivce.NT.Copy = 16422,Realtek\Audio\IIS
Codec_Device_Serivce.NTamd64.Copy = 16422,Realtek\Audio\IIS
Codec_Device.NT.CoInstallers_Copy = 11 ;%SystemRoot%\system32
Codec_Device.NTamd64.CoInstallers_Copy = 11 ;%SystemRoot%\system32

;********************************
; 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\VEN_10EC&DEV_5640&SUBSYS_221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\VEN_10EC&DEV_5640&SUBSYS_221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5651
; For XP and later
[Realtek.NTx86]
;%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\VEN_10EC&DEV_5640&SUBSYS_221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\VEN_10EC&DEV_5640&SUBSYS_221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5651
; x64
[Realtek.NTamd64]
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\INTCCFFD
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5640
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\VEN_10EC&DEV_5640&SUBSYS_221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\VEN_10EC&DEV_5640&SUBSYS_221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5672
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221C17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\221B17AA
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5642
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5645
%CodecDevice.DeviceDesc%=Codec_Device, ACPI\10EC5651

[Codec_Device.NT]
CopyFiles=Codec_Device.NT.Copy, Codec_Device_Serivce.NT.Copy
Reboot
;x64
[Codec_Device.NTamd64]
CopyFiles=Codec_Device.NTamd64.Copy, Codec_Device_Serivce.NTamd64.Copy
Reboot

[Codec_Device.NT.CoInstallers]
AddReg=Codec_Device.NT.CoInstallers_AddReg
CopyFiles=Codec_Device.NT.CoInstallers_Copy
reboot

[Codec_Device.NTamd64.CoInstallers]
AddReg=Codec_Device.NTamd64.CoInstallers_AddReg
CopyFiles=Codec_Device.NTamd64.CoInstallers_Copy
reboot

[Codec_Device.NT.Copy]
rtii2sac.sys

[Codec_Device.NTamd64.Copy]
rtii2sac.sys

[Codec_Device.NT.CoInstallers_Copy]
rtii2sac_coinstaller.dll

[Codec_Device.NTamd64.CoInstallers_Copy]
rtii2sac_coinstaller.dll

[Codec_Device_Serivce.NT.Copy]
RtkI2SAudioService.exe
RtI2SBgProc.exe

[Codec_Device_Serivce.NTamd64.Copy]
RtkI2SAudioService64.exe
RtI2SBgProc64.exe

[Codec_Device.NT.HW]
AddReg=Codec_Device.NT.HW.AddReg, Codec_Device_AP.NT.AddReg

[Codec_Device.NTamd64.HW]
AddReg=Codec_Device.NTamd64.HW.AddReg, Codec_Device_AP.NTamd64.AddReg

[Codec_Device.NT.HW.AddReg]

[Codec_Device.NTamd64.HW.AddReg]

[Codec_Device_AP.NT.AddReg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"RtkNGUI",0x00000000,%16422%"\Realtek\Audio\AP\RtkNGUI.exe /s" ;HEKY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2,"%%SystemRoot%%\system32\RTSndMgr.CPL",0x00010001 ,0x4
[Codec_Device_AP.NTamd64.AddReg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"RtkNGUI",0x00000000,%16422%"\Realtek\Audio\AP\RtkNGUI64.exe /s" ;HEKY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2,"%%SystemRoot%%\system32\RTSnMg64.CPL",0x00010001 ,0x4

[Codec_Device.NT.CoInstallers_AddReg]
HKR,,CoInstallers32,,"rtii2sac_coinstaller.dll,Rtii2sacCoInstaller"
[Codec_Device.NTamd64.CoInstallers_AddReg]
HKR,,CoInstallers32,,"rtii2sac_coinstaller.dll,Rtii2sacCoInstaller"

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

[Codec_Device.NT.Services]
AddService = rtii2sac, %SPSVCINST_ASSOCSERVICE%, rtii2sac_Service_Inst
AddService = RtkI2SCodec,0x00000800, RtkI2SCodec_Service_Inst

[Codec_Device.NTamd64.Services]
AddService = rtii2sac64, %SPSVCINST_ASSOCSERVICE%, rtii2sac_Service_Inst_NTamd64
AddService = RtkI2SCodec64,0x00000800, RtkI2SCodec_Service_Inst_NTamd64

[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

[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

[RtkI2SCodec_Service_Inst]
DisplayName	= "RTK IIS Codec Service"
ServiceType	= 0x00000010
StartType	= 2				; SERVICE_AUTO_START
ErrorControl	= 1				; SERVICE_ERROR_NORMAL
StartName	= LocalSystem
ServiceBinary	= """%16422%\Realtek\Audio\IIS\RtkI2SAudioService.exe"""

[RtkI2SCodec_Service_Inst_NTamd64]
DisplayName	= "RTK IIS Codec Service 64"
ServiceType	= 0x00000010
StartType	= 2				; SERVICE_AUTO_START
ErrorControl	= 1				; SERVICE_ERROR_NORMAL
StartName	= LocalSystem
ServiceBinary	= """%16422%\Realtek\Audio\IIS\RtkI2SAudioService64.exe"""

[SourceDisksNames.x86]
1 = %DiskId1%,,,""
[SourceDisksNames.amd64]
1 = %DiskId1%,,,""

[SourceDisksFiles.x86]
rtii2sac.sys = 1,,
rtii2sac_coinstaller.dll = 1,,
RtkI2SAudioService.exe = 1,,
RtI2SBgProc.exe = 1,,

[SourceDisksFiles.amd64]
rtii2sac.sys = 1,,
rtii2sac_coinstaller.dll = 1,,
RtkI2SAudioService64.exe = 1,,
RtI2SBgProc64.exe = 1,,

[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"
