- Fix building of cmidriver
[reactos.git] / reactos / drivers / wdm / audio / drivers / CMIDriver / property.h
1 /*
2 Copyright (c) 2006-2007 dogbert <dogber1@gmail.com>
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright
11 notice, this list of conditions and the following disclaimer in the
12 documentation and/or other materials provided with the distribution.
13 3. The name of the author may not be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #ifndef _PROPERTY_H_
29 #define _PROPERTY_H_
30
31 //GUID for the private property
32 // {2B81CDBB-EE6C-4ECC-8AA5-9A188B023DFF}
33
34 #define STATIC_KSPROPSETID_CMI \
35 0x2B81CDBB, 0xEE6C, 0x4ECC, 0x8A, 0xA5, 0x9A, 0x18, 0x8B, 0x02, 0x3D, 0xFF
36 DEFINE_GUIDSTRUCT("2B81CDBB-EE6C-4ECC-8AA5-9A188B023DFF", KSPROPSETID_CMI);
37 #define KSPROPSETID_CMI DEFINE_GUIDNAMED(KSPROPSETID_CMI)
38
39
40 //methods
41 #define KSPROPERTY_CMI_GET 1
42 #define KSPROPERTY_CMI_SET 2
43
44 #define FMT_441_PCM 0x00000001
45 #define FMT_480_PCM 0x00000002
46 #define FMT_882_PCM 0x00000004
47 #define FMT_960_PCM 0x00000008
48 #define FMT_441_MULTI_PCM 0x00000010
49 #define FMT_480_MULTI_PCM 0x00000020
50 #define FMT_882_MULTI_PCM 0x00000040
51 #define FMT_960_MULTI_PCM 0x00000080
52 #define FMT_441_DOLBY 0x00000100
53 #define FMT_480_DOLBY 0x00000200
54 #define FMT_882_DOLBY 0x00000400
55 #define FMT_960_DOLBY 0x00000800
56
57 #ifndef UInt32
58 #define UInt32 ULONG
59 #define UInt16 USHORT
60 #define UInt8 BYTE
61 #define Int32 LONG
62 #endif
63
64 typedef struct
65 {
66 char driverVersion[32];
67 int hardwareRevision;
68 UInt16 IOBase;
69 UInt16 MPUBase;
70 UInt32 maxChannels;
71 UInt32 enablePCMDAC;
72 UInt32 exchangeFrontBack;
73 UInt32 enableBass2Line;
74 UInt32 enableCenter2Line;
75 UInt32 enableRear2Line;
76 UInt32 enableCenter2Mic;
77 UInt32 enableSPDO;
78 UInt32 enableSPDO5V;
79 UInt32 enableSPDOCopyright;
80 UInt32 select2ndSPDI;
81 UInt32 invertPhaseSPDI;
82 UInt32 invertValidBitSPDI;
83 UInt32 loopSPDI;
84 UInt32 formatMask;
85 UInt32 enableSPDI;
86 } CMIDATA;
87
88 #endif //_PROPERTY_H_