root/trunk/libffado/src/metrichalo/mh_avdevice.h

Revision 445, 2.0 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

Line 
1 /*
2  * Copyright (C) 2005-2007 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 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 MHDEVICE_H
25 #define MHDEVICE_H
26
27 #include "iavdevice.h"
28
29 #include "debugmodule/debugmodule.h"
30 #include "libavc/avc_definitions.h"
31
32 // #include "libstreaming/MHStreamProcessor.h"
33
34 class ConfigRom;
35 class Ieee1394Service;
36
37 namespace MetricHalo {
38
39 // struct to define the supported devices
40 struct VendorModelEntry {
41     unsigned int vendor_id;
42     unsigned int model_id;
43     char *vendor_name;
44     char *model_name;
45 };
46
47 class MHAvDevice : public IAvDevice {
48 public:
49     MHAvDevice( std::auto_ptr<ConfigRom>( configRom ),
50           Ieee1394Service& ieee1394Service,
51           int nodeId );
52     virtual ~MHAvDevice();
53
54     static bool probe( ConfigRom& configRom );
55     bool discover();
56
57     void showDevice();
58
59     bool setSamplingFrequency( ESamplingFrequency samplingFrequency );
60     int getSamplingFrequency( );
61
62     int getStreamCount();
63     Streaming::StreamProcessor *getStreamProcessorByIndex(int i);
64
65     bool prepare();
66     bool lock();
67     bool unlock();
68
69     bool startStreamByIndex(int i);
70     bool stopStreamByIndex(int i);
71
72     signed int getIsoRecvChannel(void);
73     signed int getIsoSendChannel(void);
74
75 protected:
76     struct VendorModelEntry *m_model;
77
78 };
79
80 }
81
82 #endif
Note: See TracBrowser for help on using the browser.