Changeset 1558 for branches

Show
Ignore:
Timestamp:
05/17/09 06:42:38 (12 years ago)
Author:
ppalmers
Message:

add firmware check for Terratec Phase88 (click/pop issue)

Files:

Legend:

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

    r1278 r1558  
    165165 
    166166    return false; 
     167} 
     168 
     169std::string 
     170BeBoB::BootloaderManager::getSoftwareDate() 
     171{ 
     172    return makeDate( m_cachedInfoRegs.m_softwareDate ); 
     173} 
     174 
     175std::string 
     176BeBoB::BootloaderManager::getSoftwareTime() 
     177{ 
     178    return makeDate( m_cachedInfoRegs.m_softwareTime ); 
    167179} 
    168180 
  • branches/libffado-2.0/src/bebob/bebob_dl_mgr.h

    r932 r1558  
    6767        bool setStartBootloader( bool bStartBootloader ) 
    6868            { m_bStartBootloader = bStartBootloader; return true; } 
     69 
     70        int getSoftwareVersion() {return m_cachedInfoRegs.m_softwareVersion;}; 
     71        std::string getSoftwareDate(); 
     72        std::string getSoftwareTime(); 
     73 
    6974        protected: 
    7075        enum EObjectType { 
  • branches/libffado-2.0/src/bebob/terratec/terratec_device.cpp

    r1244 r1558  
    2323 
    2424#include "terratec_device.h" 
     25#include "src/bebob/bebob_dl_mgr.h" 
     26#include "src/bebob/bebob_dl_bcd.h" 
    2527 
    2628namespace BeBoB { 
     
    4547    BeBoB::AvDevice::showDevice(); 
    4648} 
    47 /*                'externalsync': ['/Mixer/Selector_8', self.comboExtSync],  
    48                 'syncsource':   ['/Mixer/Selector_9', self.comboSyncSource], */ 
     49 
     50bool 
     51Phase88Device::discover() 
     52
     53    BeBoB::BootloaderManager blMgr( get1394Service(), getNodeId() ); 
     54    blMgr.printInfoRegisters(); 
     55    if (blMgr.getSoftwareVersion() < 0x01120d1f) { 
     56        debugError("The firmware of this Phase88 device is too old. Please update the firmware.\n"); 
     57        return false; 
     58    } 
     59    return BeBoB::AvDevice::discover(); 
     60
     61 
    4962void 
    5063Phase88Device::updateClockSources() { 
  • branches/libffado-2.0/src/bebob/terratec/terratec_device.h

    r1244 r1558  
    3737    virtual ~Phase88Device(); 
    3838 
     39    virtual bool discover(); 
     40 
    3941    virtual void showDevice(); 
    4042