Changeset 1868
- Timestamp:
- 07/15/10 07:20:13 (2 years ago)
- Files:
-
- trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (modified) (1 diff)
- trunk/libffado/src/rme/fireface_hw.cpp (modified) (3 diffs)
- trunk/libffado/src/rme/rme_avdevice.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp
r1866 r1868 340 340 RmeReceiveStreamProcessor *rxsp = static_cast<Rme::Device *> 341 341 (&m_Parent)->getRxSP(); 342 #if 0 342 343 debugOutput(DEBUG_LEVEL_VERBOSE, "tx timestamp: %lld, ct=%08x (%03ld,%04ld,%04ld)\n", 343 344 m_last_timestamp, pkt_ctr, CYCLE_TIMER_GET_SECS(pkt_ctr), CYCLE_TIMER_GET_CYCLES(pkt_ctr), CYCLE_TIMER_GET_OFFSET(pkt_ctr)); 344 345 debugOutput(DEBUG_LEVEL_VERBOSE, " hw tx: 0x%08x\n", rxsp->n_hw_tx_buffer_samples); 346 #endif 345 347 //if (rxsp->n_hw_tx_buffer_samples < 0x38) 346 if (cx < 7) { 348 has_dryrun = 1; 349 if (rxsp->n_hw_tx_buffer_samples == -1) { 350 // Effectively delay a bit before starting to send packets 351 if (cx > 255) { 352 *length = getMaxPacketSize(); 353 } 354 cx++; 355 } else { 356 if (cx < 7) { 347 357 *length = getMaxPacketSize(); 348 cx++;349 has_dryrun = 1;350 } else 351 cx=0; 352 debugOutput(DEBUG_LEVEL_VERBOSE, " txsize=%d\n", *length);358 cx++; 359 } else 360 cx=0; 361 } 362 //debugOutput(DEBUG_LEVEL_VERBOSE, " txsize=%d\n", *length); 353 363 } 354 364 trunk/libffado/src/rme/fireface_hw.cpp
r1851 r1868 746 746 } 747 747 748 /* 748 749 {signed int i; 749 750 printf("addr %016llx\n", addr); … … 756 757 readRegister(0xfffff000040cLL); 757 758 readRegister(0xfffff000040cLL); 758 759 */ 759 760 return writeBlock(addr, buf, size); 761 762 // i = writeBlock(addr, buf, size); 763 // get_hardware_streaming_status(buf, 4); 764 //printf(" - 0x%08x 0x%08x 0x%08x 0x%08x\n", 765 // buf[0], buf[1], buf[2], buf[3]); 766 // return i; 760 767 } 761 768 … … 781 788 } 782 789 783 readRegister(0x801c0000LL);790 //readRegister(0x801c0000LL); 784 791 785 792 printf("start 0x%016llx data: %08x\n", addr, data); 786 793 ret = writeRegister(addr, data); 794 printf(" ret=%d\n", ret); 787 795 if (ret == 0) { 788 796 dev_config->is_streaming = 1; trunk/libffado/src/rme/rme_avdevice.cpp
r1850 r1868 101 101 Device::~Device() 102 102 { 103 delete m_receiveProcessor; 104 delete m_transmitProcessor; 105 103 106 if (iso_tx_channel>=0 && !get1394Service().freeIsoChannel(iso_tx_channel)) { 104 107 debugOutput(DEBUG_LEVEL_VERBOSE, "Could not free tx iso channel %d\n", iso_tx_channel);
