Changeset 1197

Show
Ignore:
Timestamp:
05/22/08 10:18:54 (13 years ago)
Author:
wagi
Message:

Set clock source always to 'Device Controlled'. The FA-101 doesn't support
switching clock source by software.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/bebob/edirol/edirol_fa101.cpp

    r1183 r1197  
    3434                 getConfigRom().getNodeId() ); 
    3535 
     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 
    3643    if (AVC::AVCCommand::getSleepAfterAVCCommand() < 500) { 
    3744        AVC::AVCCommand::setSleepAfterAVCCommand( 500 ); 
     
    4148EdirolFa101Device::~EdirolFa101Device() 
    4249{ 
     50} 
     51 
     52FFADODevice::ClockSource 
     53EdirolFa101Device::getActiveClockSource() { 
     54    return m_fixed_clocksource; 
     55} 
     56 
     57bool 
     58EdirolFa101Device::setActiveClockSource(ClockSource s) { 
     59    // can't change, hence only succeed when identical 
     60    return s.id == m_fixed_clocksource.id; 
     61} 
     62 
     63FFADODevice::ClockSourceVector 
     64EdirolFa101Device::getSupportedClockSources() { 
     65    FFADODevice::ClockSourceVector r; 
     66    r.push_back(m_fixed_clocksource); 
     67    return r; 
    4368} 
    4469 
  • branches/libffado-2.0/src/bebob/edirol/edirol_fa101.h

    r1183 r1197  
    2525#define BEBOB_EDIROL_FA101_H 
    2626 
    27 #include "debugmodule/debugmodule.h" 
    2827#include "bebob/bebob_avdevice.h" 
    2928 
     
    3736    virtual ~EdirolFa101Device(); 
    3837 
     38    virtual ClockSourceVector getSupportedClockSources(); 
     39    virtual bool setActiveClockSource(ClockSource); 
     40    virtual ClockSource getActiveClockSource(); 
     41 
    3942    virtual void showDevice(); 
    4043 
     44private: 
     45    ClockSource m_fixed_clocksource; 
    4146}; 
    4247