Changeset 547
- Timestamp:
- 08/21/07 08:36:17 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-scons_porting_work/src/bebob/bebob_avdevice.cpp
r516 r547 60 60 {0x000f1b, 0x00010064, "ESI", "Quatafire 610"}, 61 61 62 {0x00130e, 0x00000000, "Focusrite", "Saffire (LE)"}, 62 63 {0x00130e, 0x00000003, "Focusrite", "Saffire Pro26IO"}, 63 64 {0x00130e, 0x00000006, "Focusrite", "Saffire Pro10IO"}, … … 436 437 } 437 438 438 AvPlugVector digital PCRInputPlugs = getPlugsByType( m_externalPlugs,439 AvPlugVector digitalExternalInputPlugs = getPlugsByType( m_externalPlugs, 439 440 AvPlug::eAPD_Input, 440 441 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 } 441 454 442 455 AvPlugVector syncMSUInputPlugs = m_pPlugManager->getPlugsByType( … … 472 485 debugOutput( DEBUG_LEVEL_VERBOSE, "PCR Iso Output Plugs:\n" ); 473 486 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 ); 476 491 debugOutput( DEBUG_LEVEL_VERBOSE, "MSU Sync Input Plugs:\n" ); 477 492 showAvPlugs( syncMSUInputPlugs ); … … 503 518 "Internal (CSP)" ); 504 519 505 // Check all external PCRdigital input to MSU input connections520 // Check all external digital input to MSU input connections 506 521 // -> 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, 508 529 syncMSUInputPlugs, 509 530 "Digital Input Sync" ); … … 1160 1181 return false; 1161 1182 } 1162 1183 1163 1184 if (!addPlugToProcessor(*outputPlug,p, 1164 1185 Streaming::Port::E_Capture)) { … … 1281 1302 case ExtendedPlugInfoClusterInfoSpecificData::ePT_MADI: 1282 1303 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; 1283 1315 case ExtendedPlugInfoClusterInfoSpecificData::ePT_NoType: 1284 1316 default: branches/libffado-scons_porting_work/src/libstreaming/AmdtpStreamProcessor.cpp
r494 r547 80 80 unsigned char *tag, unsigned char *sy, 81 81 int cycle, unsigned int dropped, unsigned int max_length) { 82 82 83 83 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 88 96 debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Xmit handler for cycle %d, (running=%d, enabled=%d,%d)\n", 89 97 cycle, m_running, m_disabled, m_is_disabled); 98 99 m_last_cycle=cycle; 90 100 91 101 #ifdef DEBUG branches/libffado-scons_porting_work/src/libstreaming/IsoHandler.cpp
r445 r547 569 569 bool IsoXmitHandler::start(int cycle) 570 570 { 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); 572 573 573 574 if(!(IsoHandler::start(cycle))) {