[Version]
Signature="$Windows NT$"
Class=MEDIA
Provider=%ProviderName%
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
DriverVer=08/02/2016,1.1.120.3
CatalogFile=RtkA2dp.cat

[SourceDisksNames]
222="RtkA2dp Driver Disk","",222

[SourceDisksFiles]
RtkA2dp.sys=222

[SignatureAttributes]
RtkA2dp.sys=SignatureAttributes.DRM

[SignatureAttributes.DRM]
DRMLevel=1300

[Manufacturer]
%MfgName%=Realtek,NTamd64

[Realtek.NTamd64]
%RtkA2dp.DeviceDesc%=RtkA2dp,BTHENUM\{0000110b-0000-1000-8000-00805f9b34fb}_LOCALMFG&005d
%RtkA2dp.DeviceDesc%=RtkA2dp,BTHENUM\{0000110a-0000-1000-8000-00805f9b34fb}_LOCALMFG&005d

[DestinationDirs]
RtkA2dp.CopyList=12 ; windows\system32\drivers

;======================================================
; RtkA2dp
;======================================================
[RtkA2dp.CopyList]
RtkA2dp.sys

[RtkA2dp.AddReg]
HKR,,AssociatedFilters,,"wdmaud,redbook"
HKR,,Driver,,RtkA2dp.sys

;
; For demo only, please review these power management settings for your architecture. 
;
HKR,PowerSettings,SingleComponentMultiFxStates,3,1,0,0,0  ; Turn on multi Fx support.
HKR,PowerSettings,ConservationIdleTime,3,3,0,0,0          ; 3 seconds for idle power management when on battery
HKR,PowerSettings,PerformanceIdleTime,3,3,0,0,0           ; 3 seconds for idle power management when on AC power
HKR,PowerSettings,IdlePowerState,3,3,0,0,0                ; go to D3 for idle power management

HKR,Drivers,SubClasses,,"wave"

HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv

HKR,Drivers\wave\wdmaud.drv,Description,,%RtkA2dp.DeviceDesc%

;======================================================
; render interfaces: speaker (internal)
;======================================================
[RtkA2dp.I.WaveSpeaker]
AddReg=RtkA2dp.I.WaveSpeaker.AddReg

[RtkA2dp.I.WaveSpeaker.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%RtkA2dp.WaveSpeaker.szPname%

[RtkA2dp.I.TopologySpeaker]
AddReg=RtkA2dp.I.TopologySpeaker.AddReg

[RtkA2dp.I.TopologySpeaker.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%RtkA2dp.TopologySpeaker.szPname%

; The following lines opt-in to pull mode.
HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_ANY%
HKR,"EP\\0",%PKEY_AudioEndpoint_Supports_EventDriven_Mode%,0x00010001,0x1

;======================================================
; RtkA2dp
;======================================================
[RtkA2dp.NT]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles=RtkA2dp.CopyList
AddReg=RtkA2dp.AddReg

[RtkA2dp.NT.Interfaces]
;
; Interfaces for speaker (internal) render endpoint.
;
AddInterface=%KSCATEGORY_AUDIO%, %KSNAME_WaveSpeaker%, RtkA2dp.I.WaveSpeaker
AddInterface=%KSCATEGORY_RENDER%, %KSNAME_WaveSpeaker%, RtkA2dp.I.WaveSpeaker
AddInterface=%KSCATEGORY_REALTIME%, %KSNAME_WaveSpeaker%, RtkA2dp.I.WaveSpeaker
AddInterface=%KSCATEGORY_AUDIO%, %KSNAME_TopologySpeaker%, RtkA2dp.I.TopologySpeaker
AddInterface=%KSCATEGORY_TOPOLOGY%, %KSNAME_TopologySpeaker%, RtkA2dp.I.TopologySpeaker

[RtkA2dp.NT.Services]
AddService=RtkA2dp,0x00000002,RtkA2dp_Service_Inst

[RtkA2dp_Service_Inst]
DisplayName=%RtkA2dp.SvcDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\RtkA2dp.sys

;======================================================
; COMMON
;======================================================
[Strings]

;Non-localizable

KSNAME_WaveSpeaker="WaveSpeaker"
KSNAME_TopologySpeaker="TopologySpeaker"

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

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

PKEY_AudioEndpoint_Association               = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEndpoint_Supports_EventDriven_Mode = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},7"
KSNODETYPE_ANY   = "{00000000-0000-0000-0000-000000000000}"

REG_MULTI_SZ = 0x00010000           ; FLG_ADDREG_TYPE_MULTI_SZ

MEDIA_CATEGORIES = "SYSTEM\CurrentControlSet\Control\MediaCategories"

;Localizable

ProviderName = "Realteck"
MfgName      = "Realteck"
MsCopyRight  = "Realteck Copyright"

RtkA2dp.DeviceDesc="RtkA2dp"
RtkA2dp.SvcDesc="RtkA2dp Driver"

;; friendly names
RtkA2dp.WaveSpeaker.szPname="RtkA2dp Wave Speaker"
RtkA2dp.TopologySpeaker.szPname="RtkA2dp Topology Speaker"
