root/trunk/libffado/src/libavc/avc_extended_subunit_info.h

Revision 445, 3.2 kB (checked in by pieterpalmers, 17 years ago)

* name change from FreeBoB to FFADO
* replaced tabs by 4 spaces
* got rid of end-of-line spaces
* made all license and copyrights conform

library becomes LGPL, apps become GPL
explicitly state LGPL v2.1 and GPL v2 (don't like v3 draft)

copyrights are 2005-2007 Daniel & Pieter
except for the MotU stuff (C) Jonathan, Pieter

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Copyright (C) 2005-2007 by Daniel Wagner
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
22  */
23
24 #ifndef AVCEXTENDEDSUBUNITINFO_H
25 #define AVCEXTENDEDSUBUNITINFO_H
26
27 #include "avc_generic.h"
28
29 #include <libavc1394/avc1394.h>
30
31 #include <string>
32 #include <vector>
33
34 class ExtendedSubunitInfoPageData: public IBusData
35 {
36  public:
37     enum ESpecialPurpose {
38         eSP_InputGain       = 0x00,
39         eSP_OutputVolume    = 0x01,
40         eSP_NoSpecialPupose = 0xff,
41     };
42
43     ExtendedSubunitInfoPageData();
44     virtual ~ExtendedSubunitInfoPageData();
45
46     virtual bool serialize( IOSSerialize& se );
47     virtual bool deserialize( IISDeserialize& de );
48     virtual ExtendedSubunitInfoPageData* clone() const;
49
50     function_block_type_t            m_functionBlockType;
51     function_block_id_t              m_functionBlockId;
52     function_block_special_purpose_t m_functionBlockSpecialPupose;
53     no_of_input_plugs_t              m_noOfInputPlugs;
54     no_of_output_plugs_t             m_noOfOutputPlugs;
55 };
56
57 typedef std::vector<ExtendedSubunitInfoPageData*> ExtendedSubunitInfoPageDataVector;
58
59 class ExtendedSubunitInfoCmd: public AVCCommand
60 {
61 public:
62     enum EFunctionBlockType {
63         eFBT_AllFunctinBlockType    = 0xff,
64         eFBT_AudioSubunitSelector   = 0x80,
65         eFBT_AudioSubunitFeature    = 0x81,
66         eFBT_AudioSubunitProcessing = 0x82,
67         eFBT_AudioSubunitCodec      = 0x83,
68     };
69
70     enum EProcessingType {
71     ePT_Unknown                 = 0x00,
72         ePT_Mixer                   = 0x01,
73         ePT_Generic                 = 0x02,
74         ePT_UpDown                  = 0x03,
75         ePT_DolbyProLogic           = 0x04,
76         ePT_3DStereoExtender        = 0x05,
77         ePT_Reverberation           = 0x06,
78         ePT_Chorus                  = 0x07,
79         ePT_DynamicRangeCompression = 0x08,
80         ePT_EnhancedMixer           = 0x82,
81         ePT_Reserved                = 0xff,
82     };
83
84     enum ECodecType {
85         eCT_AC3Decoder  = 0x01,
86         eCT_MPEGDecoder = 0x02,
87         eCT_DTSDecoder  = 0x03,
88         eCT_Reserved    = 0xff,
89
90     };
91
92     ExtendedSubunitInfoCmd( Ieee1394Service& ieee1394service );
93     ExtendedSubunitInfoCmd( const ExtendedSubunitInfoCmd& rhs );
94     virtual ~ExtendedSubunitInfoCmd();
95
96     virtual bool serialize( IOSSerialize& se );
97     virtual bool deserialize( IISDeserialize& de );
98
99     virtual const char* getCmdName() const
100     { return "ExtendedSubunitInfoCmd"; }
101
102     page_t                m_page;
103     function_block_type_t m_fbType;
104     ExtendedSubunitInfoPageDataVector m_infoPageDatas;
105 };
106
107 #endif
Note: See TracBrowser for help on using the browser.