ReactOS
0.4.16-dev-87-g3dfbe52
property.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2006-2008 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
#define STATIC_KSPROPSETID_CMI \
34
0x2B81CDBB, 0xEE6C, 0x4ECC, {0x8A, 0xA5, 0x9A, 0x18, 0x8B, 0x02, 0x3D, 0xFF}
35
DEFINE_GUIDSTRUCT
(
"2B81CDBB-EE6C-4ECC-8AA5-9A188B023DFF"
,
KSPROPSETID_CMI
);
36
#define KSPROPSETID_CMI DEFINE_GUIDNAMED(KSPROPSETID_CMI)
37
38
//methods
39
#define KSPROPERTY_CMI_GET 1
40
#define KSPROPERTY_CMI_SET 2
41
42
#define FMT_441_PCM 0x00000001
43
#define FMT_480_PCM 0x00000002
44
#define FMT_882_PCM 0x00000004
45
#define FMT_960_PCM 0x00000008
46
#define FMT_441_MULTI_PCM 0x00000010
47
#define FMT_480_MULTI_PCM 0x00000020
48
#define FMT_882_MULTI_PCM 0x00000040
49
#define FMT_960_MULTI_PCM 0x00000080
50
#define FMT_441_DOLBY 0x00000100
51
#define FMT_480_DOLBY 0x00000200
52
#define FMT_882_DOLBY 0x00000400
53
#define FMT_960_DOLBY 0x00000800
54
55
#ifndef UInt32
56
#define UInt32 ULONG
57
#define UInt16 USHORT
58
#define UInt8 BYTE
59
#define Int32 LONG
60
#endif
61
62
typedef
struct
63
{
64
char
driverVersion[32];
65
int
hardwareRevision
;
66
UInt16
IOBase
;
67
UInt16
MPUBase
;
68
UInt32
maxChannels
;
69
UInt32
enableSPDIMonitor
;
70
UInt32
exchangeFrontBack
;
71
UInt32
enableBass2Line
;
72
UInt32
enableCenter2Line
;
73
UInt32
enableRear2Line
;
74
UInt32
enableCenter2Mic
;
75
UInt32
enableSPDO
;
76
UInt32
enableSPDO5V
;
77
UInt32
enableSPDOCopyright
;
78
UInt32
select2ndSPDI
;
79
UInt32
invertPhaseSPDI
;
80
UInt32
invertValidBitSPDI
;
81
UInt32
loopSPDI
;
82
UInt32
formatMask
;
83
UInt32
enableSPDI
;
84
}
CMIDATA
;
85
86
#endif
//_PROPERTY_H_
UInt16
USHORT UInt16
Definition:
chm_lib.c:102
UInt32
DWORD UInt32
Definition:
chm_lib.c:104
DEFINE_GUIDSTRUCT
#define DEFINE_GUIDSTRUCT(guid, name)
Definition:
ks.h:98
KSPROPSETID_CMI
#define KSPROPSETID_CMI
Definition:
property.h:36
CMIDATA
Definition:
property.h:63
CMIDATA::enableBass2Line
UInt32 enableBass2Line
Definition:
property.h:71
CMIDATA::hardwareRevision
int hardwareRevision
Definition:
property.h:65
CMIDATA::loopSPDI
UInt32 loopSPDI
Definition:
property.h:81
CMIDATA::enableSPDO5V
UInt32 enableSPDO5V
Definition:
property.h:76
CMIDATA::enableCenter2Line
UInt32 enableCenter2Line
Definition:
property.h:72
CMIDATA::enableSPDIMonitor
UInt32 enableSPDIMonitor
Definition:
property.h:69
CMIDATA::enableRear2Line
UInt32 enableRear2Line
Definition:
property.h:73
CMIDATA::enableCenter2Mic
UInt32 enableCenter2Mic
Definition:
property.h:74
CMIDATA::IOBase
UInt16 IOBase
Definition:
property.h:66
CMIDATA::select2ndSPDI
UInt32 select2ndSPDI
Definition:
property.h:78
CMIDATA::invertPhaseSPDI
UInt32 invertPhaseSPDI
Definition:
property.h:79
CMIDATA::formatMask
UInt32 formatMask
Definition:
property.h:82
CMIDATA::enableSPDI
UInt32 enableSPDI
Definition:
property.h:83
CMIDATA::enableSPDOCopyright
UInt32 enableSPDOCopyright
Definition:
property.h:77
CMIDATA::exchangeFrontBack
UInt32 exchangeFrontBack
Definition:
property.h:70
CMIDATA::MPUBase
UInt16 MPUBase
Definition:
property.h:67
CMIDATA::invertValidBitSPDI
UInt32 invertValidBitSPDI
Definition:
property.h:80
CMIDATA::enableSPDO
UInt32 enableSPDO
Definition:
property.h:75
CMIDATA::maxChannels
UInt32 maxChannels
Definition:
property.h:68
drivers
wdm
audio
drivers
CMIDriver
property.h
Generated on Wed Oct 2 2024 06:06:02 for ReactOS by
1.9.6