root/trunk/libffado/src/bebob/bebob_avplug.h

Revision 742, 2.4 kB (checked in by ppalmers, 13 years ago)

- Remove some obsolete support files and dirs

- Clean up the license statements in the source files. Everything is

GPL version 3 now.

- Add license and copyright notices to scons scripts

- Clean up some other text files

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 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 3 of the License, or
12  * (at your option) any later version.
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 BEBOB_AVPLUG_H
25 #define BEBOB_AVPLUG_H
26
27 #include "libavc/ccm/avc_signal_source.h"
28 #include "libavc/streamformat/avc_extended_stream_format.h"
29 #include "libavc/general/avc_extended_plug_info.h"
30 #include "libavc/general/avc_extended_cmd_generic.h"
31 #include "libavc/avc_definitions.h"
32 #include "libavc/general/avc_generic.h"
33 #include "libavc/general/avc_plug.h"
34
35 #include "libutil/serialize.h"
36
37 #include "debugmodule/debugmodule.h"
38
39 #include <glibmm/ustring.h>
40
41 class Ieee1394Service;
42 class ConfigRom;
43
44 namespace BeBoB {
45
46 class AvDevice;
47
48 class Plug : public AVC::Plug {
49 public:
50
51     // \todo This constructors sucks. too many parameters. fix it.
52     Plug( AVC::Unit* unit,
53           AVC::Subunit* subunit,
54           AVC::function_block_type_t functionBlockType,
55           AVC::function_block_type_t functionBlockId,
56           AVC::Plug::EPlugAddressType plugAddressType,
57           AVC::Plug::EPlugDirection plugDirection,
58           AVC::plug_id_t plugId );
59     Plug( const Plug& rhs );
60     virtual ~Plug();
61
62     bool discover();
63     bool discoverConnections();
64
65  public:
66
67 protected:
68     Plug();
69
70     bool discoverPlugType();
71     bool discoverName();
72     bool discoverNoOfChannels();
73     bool discoverChannelPosition();
74     bool discoverChannelName();
75     bool discoverClusterInfo();
76     bool discoverConnectionsInput();
77     bool discoverConnectionsOutput();
78
79 private:
80     bool copyClusterInfo(AVC::ExtendedPlugInfoPlugChannelPositionSpecificData&
81                          channelPositionData );
82     AVC::ExtendedPlugInfoCmd setPlugAddrToPlugInfoCmd();
83
84
85 };
86
87 }
88
89 #endif // BEBOB_AVPLUG_H
Note: See TracBrowser for help on using the browser.