;******************************************************************************
;
;   File:           LT8581_HDMI.inf
;
;   Copyright (C) 2019 LONGTIME ELECTRONIC TECHNOLOGY LIMITED
;
;******************************************************************************/

[Version]
signature = "$Windows NT$"
Class     = Media
ClassGUID = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider  = %MV360%
CatalogFile = LT8501_HDMI.cat
DriverVer =03/04/2021,6.0.0.1
CatalogFile.NTx86=LT8581_uhdX86.cat
CatalogFile.NTAMD64=LT8581_uhdX64.cat

[SourceDisksNames]
2="Install disk",,,\i386,disk2

[SourceDisksNames.amd64]
2="Install disk",,,\amd64,disk2

[SourceDisksFiles]
dvrshwuhdx1.sys = 2

[DestinationDirs]
LT8888_HDMI.Drivers		= 12

[LT8888_HDMI.Drivers]
dvrshwuhdx1.sys

[Manufacturer]
%MV360% = MV360,ntx86,ntamd64

[MV360.ntx86]
%LT8888_HDMI.DeviceDesc% = LT8888_HDMI.Device, PCI\VEN_8888&DEV_8581

[MV360.ntamd64]
%LT8888_HDMI.DeviceDesc% = LT8888_HDMI.Device, PCI\VEN_8888&DEV_8581

;---------------------------------------------------------------
;                DDInstall
;---------------------------------------------------------------

[LT8888_HDMI.Device.ntx86]
Include    = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf
Needs      = KS.Registration,KSCAPTUR.Registration.NT, WDMAUDIO.Registration
AddReg	   = LT8888_HDMI.AddReg
CopyFiles  = LT8888_HDMI.Drivers


[LT8888_HDMI.Device.ntamd64]
Include    = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf
Needs      = KS.Registration,KSCAPTUR.Registration.NT, WDMAUDIO.Registration
AddReg	   = LT8888_HDMI.AddReg
CopyFiles  = LT8888_HDMI.Drivers


;---------------------------------------------------------------
;                Interfaces
;---------------------------------------------------------------

[LT8888_HDMI.Device.ntx86.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo1",HDVideo1,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo1",HDVideo1,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo2",HDVideo2,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo2",HDVideo2,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo3",HDVideo3,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo3",HDVideo3,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo4",HDVideo4,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo4",HDVideo4,

AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio1",HDAudio1,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio1",HDAudio1,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio2",HDAudio2,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio2",HDAudio2,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio3",HDAudio3,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio3",HDAudio3,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio4",HDAudio4,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio4",HDAudio4,


[LT8888_HDMI.Device.ntamd64.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo1",HDVideo1,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo1",HDVideo1,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo2",HDVideo2,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo2",HDVideo2,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo3",HDVideo3,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo3",HDVideo3,
AddInterface = %KSCATEGORY_CAPTURE%,"HDVideo4",HDVideo4,
AddInterface = %KSCATEGORY_VIDEO%,"HDVideo4",HDVideo4,


AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio1",HDAudio1,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio1",HDAudio1,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio2",HDAudio2,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio2",HDAudio2,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio3",HDAudio3,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio3",HDAudio3,
AddInterface = %KSCATEGORY_CAPTURE%,"HDAudio4",HDAudio4,
AddInterface = %KSCATEGORY_AUDIO%,"HDAudio4",HDAudio4,


[HDVideo1]
AddReg = HDVideo1.AddReg

[HDVideo2]
AddReg = HDVideo2.AddReg

[HDVideo3]
AddReg = HDVideo3.AddReg

[HDVideo4]
AddReg = HDVideo4.AddReg


[HDAudio1]
AddReg = HDAudio1.AddReg

[HDAudio2]
AddReg = HDAudio2.AddReg

[HDAudio3]
AddReg = HDAudio3.AddReg

[HDAudio4]
AddReg = HDAudio4.AddReg

[LT8888_HDMI.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,dvrshwuhdx1.sys
HKR,Drivers,SubClasses,,"wave,mixer"
HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%LT8888_HDMI.AudioCapture%
HKR,Drivers\mixer\wdmaud.drv,Description,,%LT8888_HDMI.AudioCapture%
HKLM, %MediaCategories%\{BA1184B9-1FE2-488A-AE78-6E997B02CAEA},Name,,%LT8888_HDMI.HDAudio1%
HKLM, %MediaCategories%\{BA1184B9-1FE3-488A-AE78-6E997B02CAEA},Name,,%LT8888_HDMI.HDAudio2%
HKLM, %MediaCategories%\{BA1184B9-1FE4-488A-AE78-6E997B02CAEA},Name,,%LT8888_HDMI.HDAudio3%
HKLM, %MediaCategories%\{BA1184B9-1FE5-488A-AE78-6E997B02CAEA},Name,,%LT8888_HDMI.HDAudio4%

[HDVideo1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDVideo1%

[HDVideo2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDVideo2%

[HDVideo3.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDVideo3%

[HDVideo4.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDVideo4%


[HDAudio1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDAudio1%

[HDAudio2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDAudio2%

[HDAudio3.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDAudio3%

[HDAudio4.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%LT8888_HDMI.HDAudio4%


;---------------------------------------------------------------
;                Services
;---------------------------------------------------------------

[LT8888_HDMI.Device.ntx86.Services]
AddService = LT8888_1CH_UHD,0x00000002,LT8888_HDMI.ServiceInstall

[LT8888_HDMI.Device.ntamd64.Services]
AddService = LT8888_1CH_UHD,0x00000002,LT8888_HDMI.ServiceInstall

[LT8888_HDMI.ServiceInstall]
DisplayName   = %LT8888_HDMI.ServiceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\dvrshwuhdx1.sys

;---------------------------------------------------------------
;                Services
;---------------------------------------------------------------

[Strings]
SERVICE_KERNEL_DRIVER 	= 1
SERVICE_DEMAND_START   	= 3
SERVICE_ERROR_NORMAL  	= 1
MV360           		= "LONGTIME ELECTRONIC TECHNOLOGY LIMITED"
LT8888_HDMI.ServiceDesc	= "LT8581-UHD Capture Card Driver"
LT8888_HDMI.DeviceDesc 	= "LT8581-UHD Card"
KSCATEGORY_CAPTURE		= "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO		= "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO		= "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO_CAP           ="{33D9A762-90C8-11d0-BD43-00A0C911CE86}"
AudioReferenceGuid              = "{F0D50853-C895-4a46-9BE6-E85614168CF5}"
Proxy.CLSID				= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
LT8888_HDMI.AudioCapture	= "LT8581-UHD Audio Capture"
LT8888_HDMI.HDVideo1   = "UHD Video 1 (LT8581-UHD Card)"
LT8888_HDMI.HDVideo2   = "UHD Video 2 (LT8581-UHD Card)"
LT8888_HDMI.HDVideo3   = "UHD Video 3 (LT8581-UHD Card)"
LT8888_HDMI.HDVideo4   = "UHD Video 4 (LT8581-UHD Card)"
LT8888_HDMI.HDAudio1	= "UHD Audio 1 (LT8581-UHD Card)"
LT8888_HDMI.HDAudio2	= "UHD Audio 2 (LT8581-UHD Card)"
LT8888_HDMI.HDAudio3	= "UHD Audio 3 (LT8581-UHD Card)"
LT8888_HDMI.HDAudio4	= "UHD Audio 4 (LT8581-UHD Card)"
MediaCategories			= "SYSTEM\CurrentControlSet\Control\MediaCategories"
VideoStreamConfigPropertyPage.CLSID="{71F96467-78F3-11d0-A18C-00A0C9118956}"
RunOnce                 = "Software\Microsoft\Windows\CurrentVersion\RunOnce"

