;------------------------------------------------------------------
;
;   hcwEmAud.inf -- This file contains installation information
;                  for WinTV USB 2.0 Audio Devices.
;
;      
;   This installation is for XP SP2 or later, Vista and Win7.
;
;   Copyright (C) 2004-2010 Hauppauge Computer Works, Inc
;
;------------------------------------------------------------------

[Version]
Signature   = "$CHICAGO$"
Class       = MEDIA
ClassGUID   = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    = %Vendor%
CatalogFile = hcwEmAud.cat
DriverVer=06/02/2010,5.10.325.28153


[SourceDisksNames]
101 = %DiskLabel%,,,HVR-900

[SourceDisksFiles]
;emAudio.sys = 101

[Manufacturer]
%Mfg%=Model

[Model]
;; %emAudio.DeviceDesc%=emAudio, USB\CLASS_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2801&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2821&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2831&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2841&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2861&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2881&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2711&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_EB1A&PID_2751&MI_01
;%emAudio.DeviceDesc%=emAudio, USB\VID_093b&PID_a005&MI_01

; Legacy support
%WTVUSB2.DeviceDesc%=WTVUSB2, USB\VID_2040&PID_4200&MI_01
%WTVUSB2.DeviceDesc%=WTVUSB2, USB\VID_2040&PID_4201&MI_01

%HVR900.DeviceDesc%=emAudio, USB\VID_2040&PID_6500&MI_01
%HVR930.DeviceDesc%=emAudio, USB\VID_2040&PID_6501&MI_01

[DestinationDirs]
emAudio.CopyList=10,system32\drivers

[emAudio]
AlsoInstall= ks.registration(ks.inf),wdmaudio.registration(wdmaudio.inf)
CopyFiles  = emAudio.CopyList
AddReg     = emAudio.AddReg

[emAudio.CopyList]
;emAudio.sys

[emaudio.Interfaces]
AddInterface = %KSCATEGORY_AUDIO%,      %KSNAME_Wave%,          emAudio.I.Wave
;AddInterface = %KSCATEGORY_RENDER%,     %KSNAME_Wave%,          emAudio.I.Wave
AddInterface = %KSCATEGORY_CAPTURE%,    %KSNAME_Wave%,          emAudio.I.Wave
;AddInterface = %KSCATEGORY_AUDIOCAP%,   %KSNAME_Wave%,     emAudio.I.Wave
AddInterface = %KSCATEGORY_AUDIO%,      %KSNAME_Topology%,      emAudio.I.Topo
;AddInterface = %KSCATEGORY_RENDER%,     %KSNAME_Topology%,      emAudio.I.Topo
AddInterface = %KSCATEGORY_CAPTURE%,    %KSNAME_Topology%,      emAudio.I.Topo
;AddInterface = %KSCATEGORY_AUDIOCAP%,   %KSNAME_Topology%, emAudio.I.Topo


[emAudio.AddReg]
HKR,,AssociatedFilters,,"wdmaud"
HKR,,Driver,,emAudio.sys
HKR,,NTMPDriver,,"emAudio.sys"
;; HKR,,NTMPDriver,,"emAudio.sys,sbemul.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,,%emAudio.DeviceDesc%
;HKR,Drivers\mixer\wdmaud.drv,Description,,%emAudio.DeviceDesc%
HKLM,%MediaCategories%\%emAudio.NameGuid%,Name,,%emAudio.Name%
HKLM,%Audio.Key%,"DeviceName",0,%emAudio.DeviceDesc%
HKR,,SurpriseRemovalOK, 0x00010001, 1

;WinTV USB2 specific settings
; preset some useful data
;HKLM,Software\Hauppauge\hcwTVWnd,"USB2_Preview",0x00010001, 0x01, 0x00, 0x00, 0x00
;HKLM,Software\Hauppauge\hcwTVWnd,"ACapFilter",0,%emAudio.DeviceDesc%
;HKLM,Software\Hauppauge\hcwTVWnd,"AudioDefPreviewPin",0,"_EMPIA"
;HKLM,Software\Hauppauge\hcwTVWnd,"AudioPreviewPin",0,"_EMPIA"
;HKLM,Software\Hauppauge\hcwTVdlg\MotionCapture,"AudioCaptureSource",0,"WinTV HVR-900 Audio Device"

;HKLM,%RunOnce%,"hcwOEMgo2",,"rundll32.exe hcwutl32.dll,hcwExec %10%\hcwoemgo.exe emAudio.sys 5.7.0813.25229" 



[emAudio.I.Wave]
AddReg=emAudio.I.Wave.AddReg

[emAudio.I.Wave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%emAudio.Wave.szPname%

[emAudio.I.Topo]
AddReg=emAudio.I.Topo.AddReg

[emAudio.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%emAudio.Topo.szPname%


[emAudio.NTX86]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles = emAudio.CopyList
AddReg    = emAudio.AddReg


[emAudio.NTX86.Interfaces]
AddInterface    = %KSCATEGORY_AUDIO%,   %KSNAME_Wave%,     emAudio.I.Wave
;AddInterface    = %KSCATEGORY_RENDER%,  %KSNAME_Wave%,          emAudio.I.Wave
AddInterface    = %KSCATEGORY_CAPTURE%, %KSNAME_Wave%,     emAudio.I.Wave
;AddInterface    = %KSCATEGORY_AUDIOCAP%,%KSNAME_Wave%,     emAudio.I.Wave
AddInterface    = %KSCATEGORY_AUDIO%,   %KSNAME_Topology%, emAudio.I.Topo


[emAudio.NTX86.Services]
include         = wdmaudio.inf
needs           = wdmaudio.registration.services
AddService      = emAudio, 0x00000002, emAudio_Service_Inst


[emAudio_Service_Inst]
DisplayName     = %emAudio.DeviceDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %10%\system32\drivers\emAudio.sys




[WTVUSB2]
AlsoInstall= ks.registration(ks.inf),wdmaudio.registration(wdmaudio.inf)
CopyFiles  = emAudio.CopyList
AddReg     = WTVUSB2.AddReg


[WTVUSB2.Interfaces]
AddInterface = %KSCATEGORY_AUDIO%,      %KSNAME_Wave%,          WTVUSB2.I.Wave
;AddInterface = %KSCATEGORY_RENDER%,     %KSNAME_Wave%,          WTVUSB2.I.Wave
AddInterface = %KSCATEGORY_CAPTURE%,    %KSNAME_Wave%,          WTVUSB2.I.Wave
;AddInterface = %KSCATEGORY_AUDIOCAP%,   %KSNAME_Wave%,     WTVUSB2.I.Wave
AddInterface = %KSCATEGORY_AUDIO%,      %KSNAME_Topology%,      WTVUSB2.I.Topo
;AddInterface = %KSCATEGORY_RENDER%,     %KSNAME_Topology%,      WTVUSB2.I.Topo
AddInterface = %KSCATEGORY_CAPTURE%,    %KSNAME_Topology%,      WTVUSB2.I.Topo
;AddInterface = %KSCATEGORY_AUDIOCAP%,   %KSNAME_Topology%, WTVUSB2.I.Topo


[WTVUSB2.AddReg]
HKR,,AssociatedFilters,,"wdmaud"
HKR,,Driver,,emAudio.sys
HKR,,NTMPDriver,,"emAudio.sys"
;; HKR,,NTMPDriver,,"emAudio.sys,sbemul.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,,%WTVUSB2.DeviceDesc%
;HKR,Drivers\mixer\wdmaud.drv,Description,,%WTVUSB2.DeviceDesc%
HKLM,%MediaCategories%\%emAudio.NameGuid%,Name,,%WTVUSB2.Name%
HKLM,%Audio.Key%,"DeviceName",0,%WTVUSB2.DeviceDesc%
HKR,,SurpriseRemovalOK, 0x00010001, 1

;WinTV USB2 specific settings
; preset some useful data
;HKLM,Software\Hauppauge\hcwTVWnd,"USB2_Preview",0x00010001, 0x01, 0x00, 0x00, 0x00
;HKLM,Software\Hauppauge\hcwTVWnd,"ACapFilter",0,%WTVUSB2.DeviceDesc%
;HKLM,Software\Hauppauge\hcwTVWnd,"AudioDefPreviewPin",0,"_EMPIA"
;HKLM,Software\Hauppauge\hcwTVWnd,"AudioPreviewPin",0,"_EMPIA"
;HKLM,Software\Hauppauge\hcwTVdlg\MotionCapture,"AudioCaptureSource",0,"WinTV USB2 Audio Device"

;HKLM,%RunOnce%,"hcwOEMgo2",,"rundll32.exe hcwutl32.dll,hcwExec %10%\hcwoemgo.exe emAudio.sys5.7.0104.25016" 



[WTVUSB2.I.Wave]
AddReg=WTVUSB2.I.Wave.AddReg

[WTVUSB2.I.Wave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%emAudio.Wave.szPname%

[WTVUSB2.I.Topo]
AddReg=WTVUSB2.I.Topo.AddReg

[WTVUSB2.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%emAudio.Topo.szPname%


[WTVUSB2.NTX86]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles = emAudio.CopyList
AddReg    = WTVUSB2.AddReg


[WTVUSB2.NTX86.Interfaces]
AddInterface    = %KSCATEGORY_AUDIO%,   %KSNAME_Wave%,     WTVUSB2.I.Wave
;AddInterface    = %KSCATEGORY_RENDER%,  %KSNAME_Wave%,          WTVUSB2.I.Wave
AddInterface    = %KSCATEGORY_CAPTURE%, %KSNAME_Wave%,     WTVUSB2.I.Wave
;AddInterface    = %KSCATEGORY_AUDIOCAP%,%KSNAME_Wave%,     WTVUSB2.I.Wave
AddInterface    = %KSCATEGORY_AUDIO%,   %KSNAME_Topology%, WTVUSB2.I.Topo


[WTVUSB2.NTX86.Services]
include         = wdmaudio.inf
needs           = wdmaudio.registration.services
AddService      = emAudio, 0x00000002, emAudio_Service_Inst



[Strings]
;---------------
;Non-Localizable
;---------------
KSNAME_Wave          = "Wave"
KSNAME_Topology      = "Topology"
Proxy.CLSID          = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO     = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER    = "{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE   = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_AUDIOCAP  = "{33D9A762-90C8-11D0-BD43-00A0C911CE86}"
emAudio.NameGuid     = "{946A7B1A-EBBC-422a-A81F-F07C8D40D3B4}"
MediaCategories      = "SYSTEM\CurrentControlSet\Control\MediaCategories"
Audio.Key            = "Software\USB2800\Audio"
RunOnce= "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

;---------------
;Localizable
;---------------
Vendor               = "Hauppauge"
DiskLabel            = "WinTV HVR900 Driver Disk"
Mfg                  = "Hauppauge"
emAudio.DeviceDesc   = "WinTV 2440/2441 Audio Device"
emAudio.Topo.szPname = "WinTV HVR-900 Audio Topology"
emAudio.Wave.szPname = "WinTV HVR-900 Audio Device"
emAudio_MIDI         = "WinTV HVR-900 MIDI Device"
emAudio.Name         = "WinTV HVR-900 Audio Device"
WTVUSB2.DeviceDesc   = "WinTV USB2 Audio Device"
WTVUSB2.Topo.szPname = "WinTV USB2 Audio Topology"
WTVUSB2.Wave.szPname = "WinTV USB2 Audio Device"
WTVUSB2_MIDI         = "WinTV USB2 MIDI Device"
WTVUSB2.Name         = "WinTV USB2 Audio Device"
HVR900.DeviceDesc    = "WinTV HVR-900 Audio Device"
HVR930.DeviceDesc    = "WinTV HVR-930 Audio Device"

