1 |
/* |
---|
2 |
* Copyright (C) 2013 by Takashi Sakamoto |
---|
3 |
* Copyright (C) 2005-2008 by Daniel Wagner |
---|
4 |
* Copyright (C) 2005-2008 by Pieter Palmers |
---|
5 |
* |
---|
6 |
* This file is part of FFADO |
---|
7 |
* FFADO = Free FireWire (pro-)audio drivers for linux |
---|
8 |
* |
---|
9 |
* FFADO is based upon FreeBoB. |
---|
10 |
* |
---|
11 |
* This program is free software: you can redistribute it and/or modify |
---|
12 |
* it under the terms of the GNU General Public License as published by |
---|
13 |
* the Free Software Foundation, either version 2 of the License, or |
---|
14 |
* (at your option) version 3 of the License. |
---|
15 |
* |
---|
16 |
* This program is distributed in the hope that it will be useful, |
---|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 |
* GNU General Public License for more details. |
---|
20 |
* |
---|
21 |
* You should have received a copy of the GNU General Public License |
---|
22 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
23 |
* |
---|
24 |
*/ |
---|
25 |
|
---|
26 |
#ifndef BEBOB_MAUDIO_NORMAL_DEVICE_H |
---|
27 |
#define BEBOB_MAUDIO_NORMAL_DEVICE_H |
---|
28 |
|
---|
29 |
#include "debugmodule/debugmodule.h" |
---|
30 |
#include "bebob/bebob_avdevice.h" |
---|
31 |
|
---|
32 |
namespace BeBoB { |
---|
33 |
namespace MAudio { |
---|
34 |
namespace Normal { |
---|
35 |
|
---|
36 |
enum DeviceID { |
---|
37 |
FW_410, |
---|
38 |
FW_AUDIOPHILE, |
---|
39 |
FW_SOLO, |
---|
40 |
FW_OZONIC |
---|
41 |
}; |
---|
42 |
|
---|
43 |
class Device : public BeBoB::Device { |
---|
44 |
public: |
---|
45 |
Device( DeviceManager& d, ffado_smartptr<ConfigRom>( configRom ), |
---|
46 |
unsigned int modelId); |
---|
47 |
virtual ~Device(); |
---|
48 |
|
---|
49 |
virtual void showDevice(); |
---|
50 |
|
---|
51 |
virtual ClockSourceVector getSupportedClockSources(); |
---|
52 |
virtual bool setActiveClockSource(ClockSource); |
---|
53 |
virtual ClockSource getActiveClockSource(); |
---|
54 |
|
---|
55 |
private: |
---|
56 |
bool updateClkSrc(); |
---|
57 |
int getClkSrc(); |
---|
58 |
ClockSource m_internal_clksrc; |
---|
59 |
ClockSource m_spdif_clksrc; |
---|
60 |
ClockSource m_adat_clksrc; |
---|
61 |
ClockSource *m_active_clksrc; |
---|
62 |
enum DeviceID m_id; |
---|
63 |
}; |
---|
64 |
|
---|
65 |
} // namespace Normal |
---|
66 |
} // namespace MAudio |
---|
67 |
} // namespace BeBoB |
---|
68 |
|
---|
69 |
#endif |
---|