;BT878_PVR.inf
; $Header: rapidpvr.inf, 10, 1/02/05 16:57:35 PM, Denny Chen (PL)$

;------------------------------------------------------------------------------
; rapidpvr.inf
;------------------------------------------------------------------------------

[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Msft%
DriverVer=02/01/2005,0.0.0.1

[Manufacturer]
%MsftMfg%=CompanyName

;------------------------------------------------------------------------------
; These are the files we need installed
;------------------------------------------------------------------------------

[SourceDisksNames]
1="BT878 WDM Drivers",,,""

[SourceDisksFiles]
rapidvid.sys=1
rapidaud.sys=1


[DestinationDirs]
Video.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
Video.CopyFilters=11
Audio.CopyDrivers=10,system32\drivers


[CompanyName]

    ;------------------------------------------------------------------------------
    ; Function 0 - Video
    ;------------------------------------------------------------------------------

    %Video.DeviceDesc%=Video.NoTuner,      PCI\VEN_109E&DEV_036E
    ;------------------------------------------------------------------------------
    ; Function 1
    ;------------------------------------------------------------------------------

	%Audio.DeviceDesc%=AUD,  PCI\VEN_109E&DEV_0878


[Video.CopyDrivers]
rapidvid.sys
stream.sys

[Video.CopyFilters]

[Video.KnownFiles]
rapidvid.sys=safe

[Video.NoTuner]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     Video.AddReg
CopyFiles=  Video.CopyDrivers,Video.CopyFilters
KnownFiles= Video.KnownFiles

[Video.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,rapidvid.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","BobMode",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","LM1881",0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","Data",0x00010001, 0x01, 0x00, 0x00, 0x00

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoCapture.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%Video.Capture%

[Video.NoTuner.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,

[Video.NoTuner.Services]
AddService = BT848,0x00000002,Video.ServiceInstall

[Video.ServiceInstall]
DisplayName   = %Video.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\rapidvid.sys



[AUD]
Include=    ks.inf
Needs=      KS.Registration
AddReg=     Audio.AddReg,AUD.AddReg
CopyFiles=  Audio.CopyDrivers


[NullSection]

[NullSection.Services]
AddService = , 2  ; null service install


[Audio.CopyDrivers]
rapidaud.sys

[Audio.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,rapidaud.sys
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKLM,System\CurrentControlSet\Control\MediaCategories\%AudioPinID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%AudioPinID%,Name,,%AudioPinName%

;
; Driver Configuration Registry Entries
;

[AUD.AddReg]
; Default to tuner input
HKR,"DriverData","InputSelect",0x00010001,   0x00,0x00,0x00,0x00

; 48 KHz operation
HKR,"DriverData","SampleRate" ,0x00010001,   0x80,0xBB,0x00,0x00

;
; Interfaces installation
;

;
; Audio
;

[AUD.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",AUD_Interface,
AddInterface={6994ad04-93ef-11d0-a3cc-00a0c9223196},"GLOBAL",AUD_Interface

[AUD_Interface]
AddReg=AUD_Interface.AddReg

[AUD_Interface.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%AUDFriendlyName%

;
; Services installation
;

[AUD.Services]
AddService = CX88AUD,2,AUD.ServiceInstall

[AUD.ServiceInstall]
DisplayName   = %Audio.DeviceDesc%
ServiceType   = 1
StartType     = 2
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\rapidaud.sys

[Strings]
Msft=                   "CompanyName"
MsftMfg=                "CompanyName"
Video.DeviceDesc=	"BT878, WDM Video Capture"
Audio.DeviceDesc=	"BT878, WDM Audio Capture"
Video.Capture=          "BT878 Capture 0"
RunOnce=                "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

AUDFriendlyName=        "BT878 WDM Audio Capture"
AudioPinID =            "{27C304E1-80F6-11d5-AFD4-0001032B6C31}"
AudioPinName =          "BT878 Audio"
Audio.null =		"BT878 (unused device function)"


SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_ERROR_NORMAL=1


