root/trunk/libffado/src/fireworks/efc/efc_cmds_hardware_ctrl.h

Revision 1336, 3.4 kB (checked in by ppalmers, 16 years ago)

Bring trunk up to date with branches/libffado-2.0:

"""
svn merge -r 1254:1299 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1301:1320 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1322:1323 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1329:HEAD svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
"""

Add getSupportedSamplingFrequencies() to DICE, RME and Metric Halo AvDevices?

Line 
1 /*
2  * Copyright (C) 2005-2008 by Pieter Palmers
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 program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) version 3 of the License.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23
24 #ifndef FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
25 #define FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
26
27 #include "efc_cmd.h"
28
29 namespace FireWorks {
30
31 #define FIREWORKS_EFC_FLAG_MIXER_ENABLED    1
32 #define FIREWORKS_EFC_FLAG_SPDIF_PRO        2
33 #define FIREWORKS_EFC_FLAG_SPDIF_RAW        4
34
35 class EfcGetClockCmd : public EfcCmd
36 {
37 public:
38     EfcGetClockCmd();
39     virtual ~EfcGetClockCmd() {};
40
41     virtual bool serialize( Util::Cmd::IOSSerialize& se );
42     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
43
44     virtual const char* getCmdName() const
45     { return "EfcGetClockCmd"; }
46
47     virtual void showEfcCmd();
48
49     uint32_t    m_clock;
50     uint32_t    m_samplerate;
51     uint32_t    m_index;
52 };
53
54 class EfcSetClockCmd : public EfcCmd
55 {
56 public:
57     EfcSetClockCmd();
58     virtual ~EfcSetClockCmd() {};
59
60     virtual bool serialize( Util::Cmd::IOSSerialize& se );
61     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
62
63     virtual const char* getCmdName() const
64     { return "EfcSetClockCmd"; }
65
66     virtual void showEfcCmd();
67
68     uint32_t    m_clock;
69     uint32_t    m_samplerate;
70     uint32_t    m_index;
71 };
72
73 class EfcPhyReconnectCmd : public EfcCmd
74 {
75 public:
76     EfcPhyReconnectCmd();
77     virtual ~EfcPhyReconnectCmd() {};
78
79     virtual bool serialize( Util::Cmd::IOSSerialize& se );
80     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
81
82     virtual const char* getCmdName() const
83     { return "EfcPhyReconnectCmd"; }
84
85     virtual void showEfcCmd();
86 };
87
88
89 class EfcGetFlagsCmd : public EfcCmd
90 {
91 public:
92     EfcGetFlagsCmd();
93     virtual ~EfcGetFlagsCmd() {};
94
95     virtual bool serialize( Util::Cmd::IOSSerialize& se );
96     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
97
98     virtual const char* getCmdName() const
99     { return "EfcGetFlagsCmd"; }
100
101     virtual void showEfcCmd();
102
103     uint32_t    m_flags;
104 };
105
106 class EfcChangeFlagsCmd : public EfcCmd
107 {
108 public:
109     EfcChangeFlagsCmd();
110     virtual ~EfcChangeFlagsCmd() {};
111
112     virtual bool serialize( Util::Cmd::IOSSerialize& se );
113     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
114
115     virtual const char* getCmdName() const
116     { return "EfcChangeFlagsCmd"; }
117
118     virtual void showEfcCmd();
119
120     uint32_t    m_setmask;
121     uint32_t    m_clearmask;
122 };
123
124 class EfcIdentifyCmd : public EfcCmd
125 {
126 public:
127     EfcIdentifyCmd();
128     virtual ~EfcIdentifyCmd() {};
129
130     virtual bool serialize( Util::Cmd::IOSSerialize& se );
131     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
132
133     virtual const char* getCmdName() const
134     { return "EfcIdentifyCmd"; }
135
136     virtual void showEfcCmd();
137
138 };
139
140 } // namespace FireWorks
141
142 #endif // FIREWORKS_EFC_CMD_HARDWARE_CTRL_H
Note: See TracBrowser for help on using the browser.