;Copyright (c) 2007 NVIDIA Corporation 2009-06-21 BY ZYDF
;    INF file for installing NVIDIA Azalia / HDMI Audio driver
; for www.Freeskycd.cn 2009-07-10 ZYDF

[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%ProviderName%
DriverVer=04/28/2009,1.00.00.26

[SourceDisksNames]
222=%DiskDescription%,,,

[SourceDisksFiles]
nvhda32.sys=222
nvcohda.dll=222

[Manufacturer]
%MfgName%=NVIDIA

[NVIDIA]
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0067&SUBSYS_00670000
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0067
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_8067
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0073
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_8073
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0001
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_8001
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0002
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0003
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0004
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0005
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0006
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0007
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0008
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_0009
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_000A
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_000B
%NVIDIA.DeviceDesc%=NVHDA32,HDAUDIO\FUNC_01&VEN_10DE&DEV_000C


[ControlFlags]
ExcludeFromSelect = *

[DestinationDirs]
NVHDA32.CopyList=10,system32\drivers
CoInstaller_CopyFiles_32=11

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

[NVHDA32.CopyList]
nvhda32.sys

[NVHDA32.CoInstallers]
AddReg=CoInstaller_AddReg_32
CopyFiles=CoInstaller_CopyFiles_32

[CoInstaller_CopyFiles_32]
nvcohda.dll,,,0x00004000

[CoInstaller_AddReg_32]
HKR,,CoInstallers32,0x00010000,"nvcohda.dll,NVCoInstaller"

[NVHDA32.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,NVHDA.Interface.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,NVHDA.Interface.Wave
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,NVHDA.Interface.Topology
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topology%,NVHDA.Interface.Topology


[NVHDA.Interface.Wave]
AddReg=NVHDA.I.Wave.AddReg

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

[NVHDA.Interface.Topology]
AddReg=NVHDA.I.Topo.AddReg, SYSFX.AddReg

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

[NVHDA32.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,nvhda32.sys


[NVHDA.AddReg]
HKR,Drivers,SubClasses,,"wave,midi,mixer"
HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\midi\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%NVHDA.DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%NVHDA.DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%NVHDA.DeviceDesc%

[NVHDA.DefaultDevice.AddReg]
HKR,,SetupPreferredAudioDevices,3,01,00,00,00

[NVHDA.Security.AddReg]
HKR,,DeviceType,0x10001,0x0000001D

[NVHDA32.HW]
AddReg=NVHDA.Security.AddReg

[NVHDA32.Services]
AddService = NVHDA, 0x00000002, NVHDA32_Service_Inst

[NVHDA32_Service_Inst]
DisplayName   = %NVHDA.SvcDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\drivers\nvhda32.sys


[SYSFX.AddReg]
HKR,"FX\\0",%PKEY_ItemNameDisplay%,,%FX_FriendlyName%
HKR,"FX\\0",%PKEY_FX_PreMixClsid%,,%FX_PREMIX_CLSID%
HKR,"FX\\0",%PKEY_FX_PostMixClsid%,,%FX_POSTMIX_CLSID%
HKR,"FX\\0",%PKEY_FX_UiClsid%,,%FX_UI_CLSID%
HKR,"FX\\0",%PKEY_FX_Association%,,%KSNODETYPE_ANY%

[Strings]
ProviderName="NVIDIA Corporation"
MfgName="NVIDIA"
DiskDescription="NVIDIA High Definition Audio Driver Disk"
NVIDIA.DeviceDesc="NVIDIA High Definition Audio"
NVHDA.DeviceDesc="NVIDIA High Definition Audio Driver"
NVHDA.Wave.szPname="NVIDIA High Definition Audio"
NVHDA.Topology.szPname="NVIDIA High Definition Audio"

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_REALTIME="{EB115FFC-10C8-4964-831D-6DCB02E6F23F}"
KSCATEGORY_TOPOLOGY="{DDA54A40-1E4C-11D1-A050-405705C10000}"
KSNAME_Wave="Wave"
KSNAME_Topology="Topology"
NVHDA.SvcDesc = "Service for NVIDIA High Definition Audio Driver"

PKEY_FX_Association             = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},0"
PKEY_FX_PreMixClsid             = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},1"
PKEY_FX_PostMixClsid            = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},2"
PKEY_FX_UiClsid                 = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},3"

PKEY_ItemNameDisplay            = "{B725F130-47EF-101A-A5F1-02608C9EEBAC},10"
PKEY_AudioEndpoint_Ext_UiClsid  = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},1"
PKEY_AudioEndpoint_Association  = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEngine_OEMFormat      = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"

NVAPO_PREMIX_CLSID              = "{B48DEA3F-1234-425a-8D9A-9A5BB37A9904}"
NVAPO_POSTMIX_CLSID             = "{06687E71-1234-403A-BF49-CB591BA6E103}"

FX_FriendlyName                 = "Microsoft Audio Home Theater Effects"
FX_PREMIX_CLSID                 = "{62dc1a93-ae24-464c-a43e-452f824c4250}"
FX_POSTMIX_CLSID                = "{637c490d-eee3-4c0a-973f-371958802da2}"
FX_UI_CLSID                     = "{5860E1C5-F95C-4a7a-8EC8-8AEF24F379A1}"

KSNODETYPE_ANY                  = "{00000000-0000-0000-0000-000000000000}"
KSNODETYPE_SPEAKER              = "{DFF21CE1-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_HDMI_INTERFACE       = "{D1B9CC2A-F519-417f-91C9-55FA65481001}"
NVUninstall.desc                = "NVIDIA High Definition Audio Driver"

; Non-Localizable Strings
REG_SZ                          = 0x00000000
REG_MULTI_SZ                    = 0x00010000
REG_EXPAND_SZ                   = 0x00020000
REG_BINARY                      = 0x00000001
REG_DWORD                       = 0x00010001
REG_SZ_APPEND                   = 0x00010008

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

msguid.HDMIOut                  ="{30EC0190-DA99-4a35-9B1B-4540C5E20020}"
mspin.HDMIOut                   ="NVIDIA HDMI Output"
msguid.DPOut                    ="{30EC0190-DA99-4a35-9B1B-4540C5E20021}"
mspin.DPOut                     ="NVIDIA DP Output"
