Changeset 1857
- Timestamp:
- 06/18/10 06:50:55 (2 years ago)
- Files:
-
- trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp (modified) (2 diffs)
- trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.h (modified) (1 diff)
- trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (modified) (3 diffs)
- trunk/libffado/src/rme/rme_avdevice.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp
r1851 r1857 63 63 unsigned int model, unsigned int event_size) 64 64 : StreamProcessor(parent, ePT_Receive) 65 , n_hw_tx_buffer_samples ( -1 ) 65 66 , m_rme_model( model ) 66 67 , m_event_size( event_size ) … … 145 146 ((adata[5] & 0xff) << 8) | (adata[0] & 0xff), 146 147 ((adata[4] & 0xff) << 8) | (adata[1] & 0xff)); 148 n_hw_tx_buffer_samples = adata[7] & 0xff; 149 debugOutput(DEBUG_LEVEL_VERBOSE, " hw tx: 0x%02x\n", n_hw_tx_buffer_samples); 147 150 return eCRV_OK; 148 151 } else { trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.h
r1674 r1857 75 75 virtual unsigned int getNominalFramesPerPacket(); 76 76 77 /* For testing only at this stage */ 78 signed int n_hw_tx_buffer_samples; 79 77 80 protected: 78 81 bool processReadBlock(char *data, unsigned int nevents, unsigned int offset); trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp
r1856 r1857 116 116 // they will contain data. 117 117 *sy = 0x00; 118 *length = 0; 118 119 119 120 signed int fc; … … 289 290 // *quadlet = CondSwapToBus32(fullTicksToSph(ts_frame)); 290 291 // } 291 292 // FIXME: temporary 293 if (*length > 0) { 294 memset(data, *length, 0); 295 } 292 296 return eCRV_OK; 293 297 } … … 324 328 if (isDryRunning()) { 325 329 // unsigned int cycle = CYCLE_TIMER_GET_CYCLES(pkt_ctr); 330 RmeReceiveStreamProcessor *rxsp = static_cast<Rme::Device *> 331 (&m_Parent)->getRxSP(); 332 debugOutput(DEBUG_LEVEL_VERBOSE, "hw tx: 0x%08x\n", rxsp->n_hw_tx_buffer_samples); 333 if (rxsp->n_hw_tx_buffer_samples < 0x38) 326 334 *length = getMaxPacketSize(); 335 debugOutput(DEBUG_LEVEL_VERBOSE, " txsize=%d\n", *length); 327 336 } 328 337 trunk/libffado/src/rme/rme_avdevice.h
r1749 r1857 117 117 signed int getRmeModel(void) { return m_rme_model; } 118 118 signed int getTcoPresent(void) { return dev_config->tco_present; } 119 Streaming::RmeReceiveStreamProcessor *getRxSP(void) { return m_receiveProcessor; } 119 120 120 121 protected:
