Show
Ignore:
Timestamp:
08/21/07 08:36:17 (17 years ago)
Author:
arnonym
Message:

Port ppalmers fixes for spdif to this scons branch. This will affect nothing in the end, as the transition from scons-branch to trunk will involve only the build-system and (almost) no sources...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-scons_porting_work/src/bebob/bebob_avdevice.cpp

    r516 r547  
    6060    {0x000f1b, 0x00010064, "ESI", "Quatafire 610"}, 
    6161 
     62    {0x00130e, 0x00000000, "Focusrite", "Saffire (LE)"}, 
    6263    {0x00130e, 0x00000003, "Focusrite", "Saffire Pro26IO"}, 
    6364    {0x00130e, 0x00000006, "Focusrite", "Saffire Pro10IO"}, 
     
    436437    } 
    437438 
    438     AvPlugVector digitalPCRInputPlugs = getPlugsByType( m_externalPlugs, 
     439    AvPlugVector digitalExternalInputPlugs = getPlugsByType( m_externalPlugs, 
    439440                                                    AvPlug::eAPD_Input, 
    440441                                                    AvPlug::eAPT_Digital ); 
     442    if ( !digitalExternalInputPlugs.size() ) { 
     443        debugOutput( DEBUG_LEVEL_VERBOSE, "No external digital input plugs found\n" ); 
     444 
     445    } 
     446     
     447    AvPlugVector syncExternalInputPlugs = getPlugsByType( m_externalPlugs, 
     448                                                    AvPlug::eAPD_Input, 
     449                                                    AvPlug::eAPT_Sync ); 
     450    if ( !syncExternalInputPlugs.size() ) { 
     451        debugOutput( DEBUG_LEVEL_VERBOSE, "No external sync input plugs found\n" ); 
     452 
     453    } 
    441454 
    442455    AvPlugVector syncMSUInputPlugs = m_pPlugManager->getPlugsByType( 
     
    472485    debugOutput( DEBUG_LEVEL_VERBOSE, "PCR Iso Output Plugs:\n" ); 
    473486    showAvPlugs( isoPCROutputPlugs ); 
    474     debugOutput( DEBUG_LEVEL_VERBOSE, "PCR digital Input Plugs:\n" ); 
    475     showAvPlugs( digitalPCRInputPlugs ); 
     487    debugOutput( DEBUG_LEVEL_VERBOSE, "External digital Input Plugs:\n" ); 
     488    showAvPlugs( digitalExternalInputPlugs ); 
     489    debugOutput( DEBUG_LEVEL_VERBOSE, "External sync Input Plugs:\n" ); 
     490    showAvPlugs( syncExternalInputPlugs ); 
    476491    debugOutput( DEBUG_LEVEL_VERBOSE, "MSU Sync Input Plugs:\n" ); 
    477492    showAvPlugs( syncMSUInputPlugs ); 
     
    503518                                      "Internal (CSP)" ); 
    504519 
    505     // Check all external PCR digital input to MSU input connections 
     520    // Check all external digital input to MSU input connections 
    506521    // -> SPDIF/ADAT sync 
    507     checkSyncConnectionsAndAddToList( digitalPCRInputPlugs, 
     522    checkSyncConnectionsAndAddToList( digitalExternalInputPlugs, 
     523                                      syncMSUInputPlugs, 
     524                                      "Digital Input Sync" ); 
     525 
     526    // Check all external sync input to MSU input connections 
     527    // -> SPDIF/ADAT sync 
     528    checkSyncConnectionsAndAddToList( syncExternalInputPlugs, 
    508529                                      syncMSUInputPlugs, 
    509530                                      "Digital Input Sync" ); 
     
    11601181        return false; 
    11611182    } 
    1162  
     1183     
    11631184    if (!addPlugToProcessor(*outputPlug,p, 
    11641185        Streaming::Port::E_Capture)) { 
     
    12811302            case ExtendedPlugInfoClusterInfoSpecificData::ePT_MADI: 
    12821303            case ExtendedPlugInfoClusterInfoSpecificData::ePT_Digital: 
     1304                p=new Streaming::AmdtpAudioPort( 
     1305                        portname.str(), 
     1306                        direction, 
     1307                        // \todo: streaming backend expects indexing starting from 0 
     1308                        // but bebob reports it starting from 1. Decide where 
     1309                        // and how to handle this (pp: here) 
     1310                        channelInfo->m_streamPosition - 1, 
     1311                        channelInfo->m_location - 1, 
     1312                        Streaming::AmdtpPortInfo::E_MBLA 
     1313                ); 
     1314                break; 
    12831315            case ExtendedPlugInfoClusterInfoSpecificData::ePT_NoType: 
    12841316            default: 
  • branches/libffado-scons_porting_work/src/libstreaming/AmdtpStreamProcessor.cpp

    r494 r547  
    8080                  unsigned char *tag, unsigned char *sy, 
    8181                  int cycle, unsigned int dropped, unsigned int max_length) { 
    82  
     82     
    8383    struct iec61883_packet *packet = (struct iec61883_packet *) data; 
    84     if (cycle<0) return RAW1394_ISO_OK; 
    85  
    86     m_last_cycle=cycle; 
    87  
     84     
     85    if (cycle<0) { 
     86        debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Xmit handler for cycle %d, (running=%d, enabled=%d,%d)\n", 
     87            cycle, m_running, m_disabled, m_is_disabled); 
     88         
     89        *tag = 0; 
     90        *sy = 0; 
     91        *length=0; 
     92        return RAW1394_ISO_OK; 
     93     
     94    } 
     95     
    8896    debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Xmit handler for cycle %d, (running=%d, enabled=%d,%d)\n", 
    8997        cycle, m_running, m_disabled, m_is_disabled); 
     98     
     99    m_last_cycle=cycle; 
    90100 
    91101#ifdef DEBUG 
  • branches/libffado-scons_porting_work/src/libstreaming/IsoHandler.cpp

    r445 r547  
    569569bool IsoXmitHandler::start(int cycle) 
    570570{ 
    571     debugOutput( DEBUG_LEVEL_VERBOSE, "start on cycle %d\n", cycle); 
     571    debugOutput( DEBUG_LEVEL_VERBOSE, "start on cycle %d, %d prebuffers\n",  
     572        cycle, m_prebuffers); 
    572573 
    573574    if(!(IsoHandler::start(cycle))) {