Changeset 728

Show
Ignore:
Timestamp:
11/25/07 13:07:25 (14 years ago)
Author:
wagi
Message:

getConfigurationIdSyncMode: consider also an address as SignalUnitAddress?. this should fix a error message for saffire users.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/bebob/bebob_avdevice.cpp

    r726 r728  
    250250    extStreamFormatCmd.setNodeId( getNodeId() ); 
    251251    extStreamFormatCmd.setCommandType( AVCCommand::eCT_Status ); 
    252     extStreamFormatCmd.setVerbose( true ); 
     252    extStreamFormatCmd.setVerbose( getDebugLevel() ); 
    253253 
    254254    if ( !extStreamFormatCmd.fire() ) { 
     
    283283    extPlugInfoCmd.setNodeId( getNodeId() ); 
    284284    extPlugInfoCmd.setCommandType( AVCCommand::eCT_Status ); 
    285     extPlugInfoCmd.setVerbose( true ); 
     285    extPlugInfoCmd.setVerbose( getDebugLevel() ); 
    286286    ExtendedPlugInfoInfoType extendedPlugInfoInfoType( 
    287287        ExtendedPlugInfoInfoType::eIT_NoOfChannels ); 
     
    317317    signalSourceCmd.setSubunitType( eST_Unit  ); 
    318318    signalSourceCmd.setSubunitId( 0xff ); 
     319    signalSourceCmd.setVerbose( getDebugLevel() ); 
    319320 
    320321    signalSourceCmd.setCommandType( AVCCommand::eCT_Status ); 
     
    337338                 | pSyncPlugSubunitAddress->m_subunitId ) << 8 
    338339            | pSyncPlugSubunitAddress->m_plugId; 
     340    } 
     341 
     342    SignalUnitAddress* pSyncPlugUnitAddress 
     343      = dynamic_cast<SignalUnitAddress*>( pSyncPlugSignalAddress ); 
     344    if ( pSyncPlugUnitAddress ) { 
     345        debugOutput(DEBUG_LEVEL_VERBOSE, "Sync mode 0x%02x\n", 
     346                      0xff << 8 | pSyncPlugSubunitAddress->m_plugId ); 
     347 
     348        return ( 0xff << 8 | pSyncPlugSubunitAddress->m_plugId ); 
    339349    } 
    340350