root/trunk/libffado/src/oxford/oxford_device.h

Revision 1543, 1.8 kB (checked in by ppalmers, 15 years ago)

- Clean up class names
- Change probe code for all devices (except MOTU) to use the config file based approach

Line 
1 /*
2  * Copyright (C) 2005-2008 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 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 OXFORD_DEVICE_H
25 #define OXFORD_DEVICE_H
26
27 #include "debugmodule/debugmodule.h"
28
29 #include "genericavc/avc_avdevice.h"
30
31 #include <pthread.h>
32 #include "libutil/Mutex.h"
33
34 class ConfigRom;
35 class Ieee1394Service;
36
37 namespace Oxford {
38
39 class Device : public GenericAVC::Device {
40
41 public:
42     Device( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom ) );
43     virtual ~Device();
44
45     static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false );
46     static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom ));
47     virtual bool discover();
48
49     virtual void showDevice();
50
51     virtual std::vector<int> getSupportedSamplingFrequencies();
52
53     virtual ClockSourceVector getSupportedClockSources();
54     virtual bool setActiveClockSource(ClockSource);
55     virtual ClockSource getActiveClockSource();
56
57     virtual bool prepare();
58
59 private:
60     ClockSource m_fixed_clocksource;
61
62 };
63
64 } // namespace Oxford
65
66 #endif
Note: See TracBrowser for help on using the browser.