Changeset 833 for trunk/libffado/src/genericavc
- Timestamp:
- 01/10/08 13:36:13 (15 years ago)
- Files:
-
- trunk/libffado/src/genericavc/avc_avdevice.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/genericavc/avc_avdevice.cpp
r784 r833 443 443 } 444 444 445 if (!addPlugToProcessor(*outputPlug, p,445 if (!addPlugToProcessor(*outputPlug, p, 446 446 Streaming::Port::E_Capture)) { 447 447 debugFatal("Could not add plug to processor!\n"); … … 472 472 473 473 if (snoopMode) { 474 if (!addPlugToProcessor(*inputPlug, p,474 if (!addPlugToProcessor(*inputPlug, p, 475 475 Streaming::Port::E_Capture)) { 476 476 debugFatal("Could not add plug to processor!\n"); … … 478 478 } 479 479 } else { 480 if (!addPlugToProcessor(*inputPlug, p,480 if (!addPlugToProcessor(*inputPlug, p, 481 481 Streaming::Port::E_Playback)) { 482 482 debugFatal("Could not add plug to processor!\n"); … … 532 532 channelInfo->m_name.c_str(), channelInfo->m_streamPosition, channelInfo->m_location); 533 533 p=new Streaming::AmdtpAudioPort( 534 *processor, 534 535 portname.str(), 535 536 direction, … … 544 545 channelInfo->m_name.c_str(), channelInfo->m_streamPosition, processor->getPortCount(Streaming::Port::E_Midi)); 545 546 p=new Streaming::AmdtpMidiPort( 547 *processor, 546 548 portname.str(), 547 549 direction, … … 565 567 channelInfo->m_name.c_str(), channelInfo->m_streamPosition, channelInfo->m_location); 566 568 p=new Streaming::AmdtpAudioPort( 569 *processor, 567 570 portname.str(), 568 571 direction, … … 581 584 if (!p) { 582 585 debugOutput(DEBUG_LEVEL_VERBOSE, "Skipped port %s\n",channelInfo->m_name.c_str()); 583 } else {584 585 if (!processor->addPort(p)) {586 debugWarning("Could not register port with stream processor\n");587 return false;588 }589 586 } 590 587 }