summaryrefslogtreecommitdiff
path: root/audio/sysvad/EndpointsCommon/micarraytopo.h
diff options
context:
space:
mode:
authorJ M Rossy <[email protected]>2015-07-29 15:40:09 -0700
committerJ M Rossy <[email protected]>2015-07-29 16:34:40 -0700
commit5d61a4a79a1e96dc5d9af1e5e712c84507307544 (patch)
tree49ed270893578cd18758b74ffcca16dc7ab948d6 /audio/sysvad/EndpointsCommon/micarraytopo.h
parent5d41613e26e147d2300c786bb2b34cb4b4067a25 (diff)
Samples update for public Windows 10 release
Fix #2 Enabling WPP Recorder in Sensors Samples causes errors Fix #4 Add back fixed KMDOD sample Add new BarcodeScanner sample in pos folder Add new MagneticStripeReader sample in pos folder Add new SynpaticsTouch sample in input folder Add new Power Engine Plugin sample in pofx folder Add new DeviceMft sample in avstream folder Add new AvsCamera sample in root Add new SimBatt sample in root Add other pre-existing samples not yet released for Win10
Diffstat (limited to 'audio/sysvad/EndpointsCommon/micarraytopo.h')
-rw-r--r--audio/sysvad/EndpointsCommon/micarraytopo.h112
1 files changed, 112 insertions, 0 deletions
diff --git a/audio/sysvad/EndpointsCommon/micarraytopo.h b/audio/sysvad/EndpointsCommon/micarraytopo.h
new file mode 100644
index 00000000..8076a359
--- /dev/null
+++ b/audio/sysvad/EndpointsCommon/micarraytopo.h
@@ -0,0 +1,112 @@
+
+/*++
+
+Copyright (c) Microsoft Corporation All Rights Reserved
+
+Module Name:
+
+ micarraytopo.h
+
+Abstract:
+
+ Declaration of mic array topology miniport.
+
+--*/
+
+#ifndef _SYSVAD_MICARRAYTOPO_H_
+#define _SYSVAD_MICARRAYTOPO_H_
+
+#include "basetopo.h"
+
+//=============================================================================
+// Classes
+//=============================================================================
+
+///////////////////////////////////////////////////////////////////////////////
+// CMicArrayMiniportTopology
+//
+
+class CMicArrayMiniportTopology :
+ public CMiniportTopologySYSVAD,
+ public IMiniportTopology,
+ public CUnknown
+{
+ public:
+ DECLARE_STD_UNKNOWN();
+ CMicArrayMiniportTopology
+ (
+ _In_opt_ PUNKNOWN UnknownOuter,
+ _In_ PCFILTER_DESCRIPTOR *FilterDesc,
+ _In_ USHORT DeviceMaxChannels,
+ _In_ eDeviceType DeviceType
+ )
+ : CUnknown(UnknownOuter),
+ CMiniportTopologySYSVAD(FilterDesc, DeviceMaxChannels),
+ m_DeviceType(DeviceType)
+ {
+ ASSERT(m_DeviceType == eMicArrayDevice1 ||
+ m_DeviceType == eMicArrayDevice2 ||
+ m_DeviceType == eMicArrayDevice3);
+ }
+
+ ~CMicArrayMiniportTopology();
+
+ IMP_IMiniportTopology;
+
+ NTSTATUS PropertyHandlerMicArrayGeometry
+ (
+ _In_ PPCPROPERTY_REQUEST PropertyRequest
+ );
+
+ NTSTATUS PropertyHandlerJackDescription
+ (
+ _In_ PPCPROPERTY_REQUEST PropertyRequest
+ );
+
+ NTSTATUS PropertyHandlerJackDescription2
+ (
+ _In_ PPCPROPERTY_REQUEST PropertyRequest
+ );
+
+ protected:
+ eDeviceType m_DeviceType;
+
+ protected:
+ bool IsFront()
+ {
+ return m_DeviceType == eMicArrayDevice1;
+ }
+
+ bool IsBack()
+ {
+ return m_DeviceType == eMicArrayDevice2;
+ }
+
+ bool IsCombined()
+ {
+ return m_DeviceType == eMicArrayDevice3;
+ }
+};
+
+typedef CMicArrayMiniportTopology *PCMicArrayMiniportTopology;
+
+
+NTSTATUS
+CreateMicArrayMiniportTopology(
+ _Out_ PUNKNOWN * Unknown,
+ _In_ REFCLSID,
+ _In_opt_ PUNKNOWN UnknownOuter,
+ _When_((PoolType & NonPagedPoolMustSucceed) != 0,
+ __drv_reportError("Must succeed pool allocations are forbidden. "
+ "Allocation failures cause a system crash"))
+ _In_ POOL_TYPE PoolType,
+ _In_ PUNKNOWN UnknownAdapter,
+ _In_opt_ PVOID DeviceContext,
+ _In_ PENDPOINT_MINIPAIR MiniportPair
+ );
+
+NTSTATUS PropertyHandler_MicArrayTopoFilter(_In_ PPCPROPERTY_REQUEST PropertyRequest);
+NTSTATUS PropertyHandler_MicArrayTopology(_In_ PPCPROPERTY_REQUEST PropertyRequest);
+
+#endif // _SYSVAD_MICARRAYTOPO_H_
+