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_ 87