2#define STR_MODULENAME "AC97 Stream: "
8#pragma code_seg("PAGE")
30 DOUT (
DBG_PRINT, (
"[CMiniportStream::NonDelegatingQueryInterface]"));
161 ntStatus = SetFormat (DataFormat_);
276 SetCopyProtectFlag (drmRights->CopyProtect);
303 switch (NewState.DeviceState)
415 if (ulFrequency != TempRate)
427 dwControlReg = (dwControlReg & 0x03F) |
497 UCHAR RegisterValueNew = RegisterValue & ~CR_RPBM;
502 if(RegisterValue != RegisterValueNew)
504 return RegisterValueNew;
514 DWORD RegisterX_PICB;
533 *buffPos = (
BDList[nCurrentIndex].
wLength - RegisterX_PICB) * 2;
534 return nCurrentIndex;
557 RegisterValue |=
CR_RR;
573 }
while (
count++ < 10);
@ AC97REG_RECORD_SAMPLERATE
@ AC97REG_SURROUND_SAMPLERATE
@ AC97REG_FRONT_SAMPLERATE
NTSTATUS NonDelegatingQueryInterface(_In_ REFIID Interface, _COM_Outptr_ PVOID *Object, _In_ REFIID iStream, _In_ PUNKNOWN stream)
void WriteReg16(ULONG addr, USHORT data)
void ResumeDMA(ULONG state=DMA_ENGINE_ON)
UCHAR ReadReg8(ULONG addr)
void WriteReg32(ULONG addr, ULONG data)
virtual NTSTATUS Init_() PURE
NTSTATUS Init(IN CMiniport *Miniport_, IN PUNKNOWN PortStream, IN WavePins Pin_, IN BOOLEAN Capture_, IN PKSDATAFORMAT DataFormat_, OUT PSERVICEGROUP *ServiceGroup_)
virtual void PowerChangeNotify_(IN POWER_STATE NewState)
int GetBuffPos(DWORD *buffPos)
USHORT ReadReg16(ULONG addr)
void PowerChangeNotify(IN POWER_STATE NewState)
PSERVICEGROUP ServiceGroup
void WriteReg8(ULONG addr, UCHAR data)
ULONG ReadReg32(ULONG addr)
PHYSICAL_ADDRESS BDList_PhysAddr
DEVICE_POWER_STATE m_PowerState
CMiniportStream * Streams[PIN_MICIN_OFFSET+1]
PADAPTERCOMMON AdapterCommon
NTSTATUS TestDataFormat(IN PKSDATAFORMAT Format, IN WavePins Pin)
#define NT_SUCCESS(StatCode)
void __fastcall obj_AddRef(PUNKNOWN obj, void **ppvObject)
void __fastcall obj_Release(void **ppvObject)
#define DOUT(lvl, strings)
const int PIN_WAVEIN_OFFSET
const int PIN_WAVEOUT_OFFSET
@ NODEC_SURROUND_DAC_PRESENT
@ NODEC_PCM_VSR_INDEPENDENT_RATES
const int DMA_ENGINE_PAUSE
IDrmAudioStream * PDRMAUDIOSTREAM
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum const GLvoid * addr
const ULONG GLOB_CNT_PCM4
WAVEFORMATPCMEX * PWAVEFORMATPCMEX
#define KeStallExecutionProcessor(MicroSeconds)
#define UNREFERENCED_PARAMETER(P)
IServiceGroup * PSERVICEGROUP
NTSTATUS NTAPI PcNewServiceGroup(OUT PSERVICEGROUP *OutServiceGroup, IN PUNKNOWN OuterUnknown OPTIONAL)
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
#define IsEqualGUIDAligned(guid1, guid2)
#define DBG_PRINT(ppi, ch, level)