Changeset 1197
- Timestamp:
- 05/22/08 10:18:54 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-2.0/src/bebob/edirol/edirol_fa101.cpp
r1183 r1197 34 34 getConfigRom().getNodeId() ); 35 35 36 m_fixed_clocksource.type = FFADODevice::eCT_Auto; 37 m_fixed_clocksource.valid = true; 38 m_fixed_clocksource.locked = true; 39 m_fixed_clocksource.id = 0; 40 m_fixed_clocksource.slipping = false; 41 m_fixed_clocksource.description = "Device Controlled"; 42 36 43 if (AVC::AVCCommand::getSleepAfterAVCCommand() < 500) { 37 44 AVC::AVCCommand::setSleepAfterAVCCommand( 500 ); … … 41 48 EdirolFa101Device::~EdirolFa101Device() 42 49 { 50 } 51 52 FFADODevice::ClockSource 53 EdirolFa101Device::getActiveClockSource() { 54 return m_fixed_clocksource; 55 } 56 57 bool 58 EdirolFa101Device::setActiveClockSource(ClockSource s) { 59 // can't change, hence only succeed when identical 60 return s.id == m_fixed_clocksource.id; 61 } 62 63 FFADODevice::ClockSourceVector 64 EdirolFa101Device::getSupportedClockSources() { 65 FFADODevice::ClockSourceVector r; 66 r.push_back(m_fixed_clocksource); 67 return r; 43 68 } 44 69 branches/libffado-2.0/src/bebob/edirol/edirol_fa101.h
r1183 r1197 25 25 #define BEBOB_EDIROL_FA101_H 26 26 27 #include "debugmodule/debugmodule.h"28 27 #include "bebob/bebob_avdevice.h" 29 28 … … 37 36 virtual ~EdirolFa101Device(); 38 37 38 virtual ClockSourceVector getSupportedClockSources(); 39 virtual bool setActiveClockSource(ClockSource); 40 virtual ClockSource getActiveClockSource(); 41 39 42 virtual void showDevice(); 40 43 44 private: 45 ClockSource m_fixed_clocksource; 41 46 }; 42 47