Changeset 748
- Timestamp:
- 11/29/07 14:26:52 (16 years ago)
- Files:
-
- trunk/libffado/src/dice/dice_avdevice.cpp (modified) (2 diffs)
- trunk/libffado/src/genericavc/avc_avdevice.cpp (modified) (2 diffs)
- trunk/libffado/src/libieee1394/cycletimer.h (moved) (moved from trunk/libffado/src/libstreaming/util/cycletimer.h)
- trunk/libffado/src/libieee1394/ieee1394service.cpp (modified) (7 diffs)
- trunk/libffado/src/libieee1394/ieee1394service.h (modified) (2 diffs)
- trunk/libffado/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp (modified) (3 diffs)
- trunk/libffado/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.h (modified) (1 diff)
- trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp (modified) (2 diffs)
- trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.h (modified) (1 diff)
- trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp (modified) (11 diffs)
- trunk/libffado/src/libstreaming/generic/StreamProcessor.h (modified) (4 diffs)
- trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp (modified) (3 diffs)
- trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.h (modified) (1 diff)
- trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp (modified) (2 diffs)
- trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.h (modified) (1 diff)
- trunk/libffado/src/libstreaming/StreamProcessorManager.cpp (modified) (1 diff)
- trunk/libffado/src/libstreaming/util/IsoHandler.cpp (modified) (4 diffs)
- trunk/libffado/src/libstreaming/util/IsoHandler.h (modified) (1 diff)
- trunk/libffado/src/libutil/TimestampedBuffer.cpp (modified) (1 diff)
- trunk/libffado/src/motu/motu_avdevice.cpp (modified) (2 diffs)
- trunk/libffado/tests/test-timestampedbuffer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/dice/dice_avdevice.cpp
r745 r748 674 674 // construct the streamprocessor 675 675 Streaming::AmdtpReceiveStreamProcessor *p; 676 p=new Streaming::AmdtpReceiveStreamProcessor( 677 get1394Service().getPort(), 676 p=new Streaming::AmdtpReceiveStreamProcessor(*this, 678 677 nb_channels); 679 678 … … 760 759 // construct the streamprocessor 761 760 Streaming::AmdtpTransmitStreamProcessor *p; 762 p=new Streaming::AmdtpTransmitStreamProcessor( 763 get1394Service().getPort(), 761 p=new Streaming::AmdtpTransmitStreamProcessor(*this, 764 762 nb_channels); 765 763 trunk/libffado/src/genericavc/avc_avdevice.cpp
r745 r748 418 418 return false; 419 419 } 420 p=new Streaming::AmdtpReceiveStreamProcessor( 421 get1394Service().getPort(), 420 p=new Streaming::AmdtpReceiveStreamProcessor(*this, 422 421 outputPlug->getNrOfChannels()); 423 422 … … 442 441 if (snoopMode) { 443 442 // we are snooping, so this is receive too. 444 p=new Streaming::AmdtpReceiveStreamProcessor( 445 get1394Service().getPort(), 443 p=new Streaming::AmdtpReceiveStreamProcessor(*this, 446 444 inputPlug->getNrOfChannels()); 447 445 } else { 448 p=new Streaming::AmdtpTransmitStreamProcessor( 449 get1394Service().getPort(), 446 p=new Streaming::AmdtpTransmitStreamProcessor(*this, 450 447 inputPlug->getNrOfChannels()); 451 448 } trunk/libffado/src/libieee1394/ieee1394service.cpp
r742 r748 25 25 #include "ieee1394service.h" 26 26 #include "ARMHandler.h" 27 #include "cycletimer.h" 27 28 28 29 #include <libavc1394/avc1394.h> … … 43 44 44 45 Ieee1394Service::Ieee1394Service() 45 : m_handle( 0 ), m_resetHandle( 0 ) 46 : m_handle( 0 ), m_resetHandle( 0 ), m_rtHandle( 0 ) 46 47 , m_port( -1 ) 47 48 , m_threadRunning( false ) … … 63 64 { 64 65 stopRHThread(); 65 66 66 for ( arm_handler_vec_t::iterator it = m_armHandlers.begin(); 67 67 it != m_armHandlers.end(); … … 83 83 raw1394_destroy_handle( m_resetHandle ); 84 84 } 85 if ( m_rtHandle ) { 86 raw1394_destroy_handle( m_rtHandle ); 87 } 85 88 } 86 89 … … 122 125 123 126 m_resetHandle = raw1394_new_handle_on_port( port ); 124 if ( !m_ handle ) {127 if ( !m_resetHandle ) { 125 128 if ( !errno ) { 126 129 debugFatal("libraw1394 not compatible\n"); … … 132 135 return false; 133 136 } 137 138 m_rtHandle = raw1394_new_handle_on_port( port ); 139 if ( !m_rtHandle ) { 140 if ( !errno ) { 141 debugFatal("libraw1394 not compatible\n"); 142 } else { 143 debugFatal("Ieee1394Service::initialize: Could not get 1394 handle: %s", 144 strerror(errno) ); 145 debugFatal("Is ieee1394 and raw1394 driver loaded?\n"); 146 } 147 return false; 148 } 134 149 135 150 m_port = port; … … 169 184 nodeid_t Ieee1394Service::getLocalNodeId() { 170 185 return raw1394_get_local_id(m_handle) & 0x3F; 186 } 187 188 /** 189 * Returns the current value of the cycle timer (in ticks) 190 * 191 * @return the current value of the cycle timer (in ticks) 192 */ 193 194 unsigned int 195 Ieee1394Service::getCycleTimerTicks() { 196 // the new api should be realtime safe. 197 // it might cause a reschedule when turning preemption, 198 // back on but that won't hurt us if we have sufficient 199 // priority 200 int err; 201 uint32_t cycle_timer; 202 uint64_t local_time; 203 err=raw1394_read_cycle_timer(m_rtHandle, &cycle_timer, &local_time); 204 if(err) { 205 debugWarning("raw1394_read_cycle_timer: %s\n", strerror(err)); 206 } 207 return CYCLE_TIMER_TO_TICKS(cycle_timer); 208 } 209 210 /** 211 * Returns the current value of the cycle timer (as is) 212 * 213 * @return the current value of the cycle timer (as is) 214 */ 215 216 unsigned int 217 Ieee1394Service::getCycleTimer() { 218 // the new api should be realtime safe. 219 // it might cause a reschedule when turning preemption, 220 // back on but that won't hurt us if we have sufficient 221 // priority 222 int err; 223 uint32_t cycle_timer; 224 uint64_t local_time; 225 err=raw1394_read_cycle_timer(m_rtHandle, &cycle_timer, &local_time); 226 if(err) { 227 debugWarning("raw1394_read_cycle_timer: %s\n", strerror(err)); 228 } 229 return cycle_timer; 171 230 } 172 231 trunk/libffado/src/libieee1394/ieee1394service.h
r742 r748 92 92 */ 93 93 nodeid_t getLocalNodeId(); 94 95 /// get the most recent cycle timer value (in ticks) 96 unsigned int getCycleTimerTicks(); 97 /// get the most recent cycle timer value (as is) 98 unsigned int getCycleTimer(); 99 94 100 95 101 /** … … 259 265 raw1394handle_t m_handle; 260 266 raw1394handle_t m_resetHandle; 267 raw1394handle_t m_rtHandle; // a handle for operations from the rt thread 261 268 int m_port; 262 269 std::string m_portName; trunk/libffado/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp
r747 r748 26 26 #include "../StreamProcessorManager.h" 27 27 28 #include " ../util/cycletimer.h"28 #include "libieee1394/cycletimer.h" 29 29 30 30 #include <netinet/in.h> … … 35 35 /* --------------------- RECEIVE ----------------------- */ 36 36 37 AmdtpReceiveStreamProcessor::AmdtpReceiveStreamProcessor( int port, int dimension)38 : StreamProcessor( ePT_Receive , port)37 AmdtpReceiveStreamProcessor::AmdtpReceiveStreamProcessor(FFADODevice &parent, int dimension) 38 : StreamProcessor(parent, ePT_Receive) 39 39 , m_dimension( dimension ) 40 40 {} … … 89 89 (length >= 2*sizeof(quadlet_t)); 90 90 if(ok) { 91 uint64_t now = m_ handler->getCycleTimer();91 uint64_t now = m_parent.get1394Service().getCycleTimer(); 92 92 //=> convert the SYT to a full timestamp in ticks 93 93 m_last_timestamp = sytRecvToFullTicks((uint32_t)ntohs(packet->syt), trunk/libffado/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.h
r742 r748 75 75 * (midi-muxed is only one stream) 76 76 */ 77 AmdtpReceiveStreamProcessor( int port, int dimension);77 AmdtpReceiveStreamProcessor(FFADODevice &parent, int dimension); 78 78 virtual ~AmdtpReceiveStreamProcessor() {}; 79 79 trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp
r747 r748 26 26 #include "../StreamProcessorManager.h" 27 27 28 #include " ../util/cycletimer.h"28 #include "libieee1394/cycletimer.h" 29 29 30 30 #include <netinet/in.h> … … 42 42 43 43 /* transmit */ 44 AmdtpTransmitStreamProcessor::AmdtpTransmitStreamProcessor ( int port, int dimension)45 : StreamProcessor ( ePT_Transmit, port)46 , m_dimension 47 , m_dbc 44 AmdtpTransmitStreamProcessor::AmdtpTransmitStreamProcessor(FFADODevice &parent, int dimension) 45 : StreamProcessor(parent, ePT_Transmit) 46 , m_dimension( dimension ) 47 , m_dbc( 0 ) 48 48 {} 49 49 trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.h
r742 r748 77 77 * (midi-muxed is only one stream) 78 78 */ 79 AmdtpTransmitStreamProcessor( int port, int dimension);79 AmdtpTransmitStreamProcessor(FFADODevice &parent, int dimension); 80 80 virtual ~AmdtpTransmitStreamProcessor() {}; 81 81 trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp
r747 r748 23 23 24 24 #include "StreamProcessor.h" 25 #include " ../util/cycletimer.h"25 #include "libieee1394/cycletimer.h" 26 26 #include "../StreamProcessorManager.h" 27 27 … … 35 35 IMPL_DEBUG_MODULE( StreamProcessor, StreamProcessor, DEBUG_LEVEL_VERBOSE ); 36 36 37 StreamProcessor::StreamProcessor(enum eProcessorType type, int port) 38 : m_processor_type ( type ) 37 StreamProcessor::StreamProcessor(FFADODevice &parent, enum eProcessorType type) 38 : m_parent( parent ) 39 , m_processor_type ( type ) 39 40 , m_channel( -1 ) 40 , m_port( port )41 41 , m_handler( NULL ) 42 42 , m_state( ePS_Created ) … … 64 64 65 65 uint64_t StreamProcessor::getTimeNow() { 66 return m_ handler->getCycleTimerTicks();66 return m_parent.get1394Service().getCycleTimerTicks(); 67 67 } 68 68 … … 114 114 time_at_period = addTicks(time_at_period, m_manager->getSyncSource().getSyncDelay()); 115 115 116 uint64_t cycle_timer=m_ handler->getCycleTimerTicks();116 uint64_t cycle_timer=m_parent.get1394Service().getCycleTimerTicks(); 117 117 118 118 // calculate the time until the next period … … 423 423 // we the packet we are constructing will be sent out 424 424 // on 'cycle', not 'now'. 425 unsigned int ctr = m_ handler->getCycleTimer();425 unsigned int ctr = m_parent.get1394Service().getCycleTimer(); 426 426 int now_cycles = (int)CYCLE_TIMER_GET_CYCLES(ctr); 427 427 … … 836 836 m_manager->getPeriodSize(), m_manager->getNbBuffers()); 837 837 debugOutput( DEBUG_LEVEL_VERBOSE, " Port: %d, Channel: %d\n", 838 m_port,m_channel);838 getPort(), m_channel); 839 839 840 840 // initialization can be done without requesting it … … 873 873 uint64_t tx; 874 874 if (t < 0) { 875 tx = addTicks(m_ handler->getCycleTimerTicks(), 200 * TICKS_PER_CYCLE);875 tx = addTicks(m_parent.get1394Service().getCycleTimerTicks(), 200 * TICKS_PER_CYCLE); 876 876 } else { 877 877 tx = t; 878 878 } 879 879 debugOutput(DEBUG_LEVEL_VERBOSE,"for %s SP (%p)\n", ePTToString(getType()), this); 880 uint64_t now = m_ handler->getCycleTimerTicks();880 uint64_t now = m_parent.get1394Service().getCycleTimerTicks(); 881 881 debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011llu (%03us %04uc %04ut)\n", 882 882 now, … … 902 902 uint64_t tx; 903 903 if (t < 0) { 904 tx = addTicks(m_ handler->getCycleTimerTicks(), 200 * TICKS_PER_CYCLE);904 tx = addTicks(m_parent.get1394Service().getCycleTimerTicks(), 200 * TICKS_PER_CYCLE); 905 905 } else { 906 906 tx = t; 907 907 } 908 908 debugOutput(DEBUG_LEVEL_VERBOSE,"for %s SP (%p)\n", ePTToString(getType()), this); 909 uint64_t now = m_ handler->getCycleTimerTicks();909 uint64_t now = m_parent.get1394Service().getCycleTimerTicks(); 910 910 debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011llu (%03us %04uc %04ut)\n", 911 911 now, … … 924 924 uint64_t tx; 925 925 if (t < 0) { 926 tx = addTicks(m_ handler->getCycleTimerTicks(), 200 * TICKS_PER_CYCLE);926 tx = addTicks(m_parent.get1394Service().getCycleTimerTicks(), 200 * TICKS_PER_CYCLE); 927 927 } else { 928 928 tx = t; 929 929 } 930 930 debugOutput(DEBUG_LEVEL_VERBOSE,"for %s SP (%p)\n", ePTToString(getType()), this); 931 uint64_t now = m_ handler->getCycleTimerTicks();931 uint64_t now = m_parent.get1394Service().getCycleTimerTicks(); 932 932 debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011llu (%03us %04uc %04ut)\n", 933 933 now, … … 946 946 uint64_t tx; 947 947 if (t < 0) { 948 tx = addTicks(m_ handler->getCycleTimerTicks(), 200 * TICKS_PER_CYCLE);948 tx = addTicks(m_parent.get1394Service().getCycleTimerTicks(), 200 * TICKS_PER_CYCLE); 949 949 } else { 950 950 tx = t; 951 951 } 952 952 debugOutput(DEBUG_LEVEL_VERBOSE,"for %s SP (%p)\n", ePTToString(getType()), this); 953 uint64_t now = m_ handler->getCycleTimerTicks();953 uint64_t now = m_parent.get1394Service().getCycleTimerTicks(); 954 954 debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011llu (%03us %04uc %04ut)\n", 955 955 now, … … 1530 1530 { 1531 1531 debugOutputShort( DEBUG_LEVEL_NORMAL, " StreamProcessor %p information\n", this); 1532 debugOutputShort( DEBUG_LEVEL_NORMAL, " Port, Channel : %d, %d\n", m_port, m_channel);1532 debugOutputShort( DEBUG_LEVEL_NORMAL, " Port, Channel : %d, %d\n", getPort(), m_channel); 1533 1533 debugOutputShort( DEBUG_LEVEL_NORMAL, " StreamProcessor info:\n"); 1534 1534 if (m_handler) { 1535 uint64_t now = m_ handler->getCycleTimerTicks();1535 uint64_t now = m_parent.get1394Service().getCycleTimerTicks(); 1536 1536 debugOutputShort( DEBUG_LEVEL_NORMAL, " Now : %011llu (%03us %04uc %04ut)\n", 1537 1537 now, trunk/libffado/src/libstreaming/generic/StreamProcessor.h
r747 r748 24 24 #ifndef __FFADO_STREAMPROCESSOR__ 25 25 #define __FFADO_STREAMPROCESSOR__ 26 27 #include "ffadodevice.h" 28 #include "libieee1394/ieee1394service.h" 26 29 27 30 #include "PortManager.h" … … 130 133 131 134 public: // constructor/destructor 132 StreamProcessor( enum eProcessorType type, int port);135 StreamProcessor(FFADODevice &parent, enum eProcessorType type); 133 136 virtual ~StreamProcessor(); 137 protected: 138 FFADODevice& m_parent; 134 139 135 140 public: // the public receive/transmit functions … … 255 260 bool setChannel(int c) 256 261 {m_channel = c; return true;}; 257 int getPort() {return m_p ort;};262 int getPort() {return m_parent.get1394Service().getPort();}; 258 263 virtual unsigned int getPacketsPerPeriod(); 259 264 virtual unsigned int getMaxPacketSize() = 0; … … 261 266 void setHandler( IsoHandler * h) {m_handler = h;}; 262 267 void clearHandler() {m_handler = NULL;}; 263 264 268 private: 265 269 int m_channel; 266 int m_port;267 270 protected: 268 271 IsoHandler *m_handler; // needed for local id and cycle counter trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp
r747 r748 27 27 #include "../StreamProcessorManager.h" 28 28 29 #include " ../util/cycletimer.h"29 #include "libieee1394/cycletimer.h" 30 30 31 31 #include <math.h> … … 67 67 } 68 68 69 MotuReceiveStreamProcessor::MotuReceiveStreamProcessor( int port, unsigned int event_size)70 : StreamProcessor( ePT_Receive , port)71 , m_event_size( event_size)69 MotuReceiveStreamProcessor::MotuReceiveStreamProcessor(FFADODevice &parent, unsigned int event_size) 70 : StreamProcessor(parent, ePT_Receive) 71 , m_event_size( event_size ) 72 72 {} 73 73 … … 137 137 // we can just pick it straight from the packet. 138 138 uint32_t last_sph = ntohl(*(quadlet_t *)(data+8+(n_events-1)*event_length)); 139 m_last_timestamp = sphRecvToFullTicks(last_sph, m_ handler->getCycleTimer());139 m_last_timestamp = sphRecvToFullTicks(last_sph, m_parent.get1394Service().getCycleTimer()); 140 140 return eCRV_OK; 141 141 } else { trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.h
r742 r748 56 56 * (midi-muxed is only one stream) 57 57 */ 58 MotuReceiveStreamProcessor( int port, unsigned int event_size);58 MotuReceiveStreamProcessor(FFADODevice &parent, unsigned int event_size); 59 59 virtual ~MotuReceiveStreamProcessor() {}; 60 60 trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp
r747 r748 27 27 #include "../StreamProcessorManager.h" 28 28 29 #include " ../util/cycletimer.h"29 #include "libieee1394/cycletimer.h" 30 30 31 31 #include <netinet/in.h> … … 51 51 52 52 /* transmit */ 53 MotuTransmitStreamProcessor::MotuTransmitStreamProcessor ( int port, unsigned int event_size )54 : StreamProcessor ( ePT_Transmit, port )55 , m_event_size 56 , m_tx_dbc 53 MotuTransmitStreamProcessor::MotuTransmitStreamProcessor(FFADODevice &parent, unsigned int event_size ) 54 : StreamProcessor(parent, ePT_Transmit ) 55 , m_event_size( event_size ) 56 , m_tx_dbc( 0 ) 57 57 {} 58 58 trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.h
r742 r748 55 55 * Create a MOTU transmit StreamProcessor 56 56 */ 57 MotuTransmitStreamProcessor( int port, unsigned int event_size);57 MotuTransmitStreamProcessor(FFADODevice &parent, unsigned int event_size); 58 58 virtual ~MotuTransmitStreamProcessor() {}; 59 59 trunk/libffado/src/libstreaming/StreamProcessorManager.cpp
r746 r748 25 25 #include "generic/StreamProcessor.h" 26 26 #include "generic/Port.h" 27 #include " util/cycletimer.h"27 #include "libieee1394/cycletimer.h" 28 28 29 29 #include <errno.h> trunk/libffado/src/libstreaming/util/IsoHandler.cpp
r747 r748 23 23 24 24 #include "IsoHandler.h" 25 #include "cycletimer.h"26 25 #include "../generic/StreamProcessor.h" 27 26 … … 37 36 #include <iostream> 38 37 using namespace std; 39 40 #define CC_SLEEP_TIME_AFTER_UPDATE 100041 #define CC_SLEEP_TIME_AFTER_FAILURE 1042 #define CC_DLL_COEFF ((0.001)*((float)(CC_SLEEP_TIME_AFTER_UPDATE/1000.0)))43 44 #define CC_MAX_RATE_ERROR (2.0/100.0)45 #define CC_INIT_MAX_TRIES 1046 47 38 48 39 namespace Streaming … … 275 266 debugOutput( DEBUG_LEVEL_VERBOSE, "bus reset...\n"); 276 267 268 #define CSR_CYCLE_TIME 0x200 269 #define CSR_REGISTER_BASE 0xfffff0000000ULL 277 270 // do a simple read on ourself in order to update the internal structures 278 271 // this avoids read failures after a bus reset … … 280 273 raw1394_read(m_handle, raw1394_get_local_id(m_handle), 281 274 CSR_REGISTER_BASE | CSR_CYCLE_TIME, 4, &buf); 282 283 275 return 0; 284 276 } 285 277 286 /**287 * Returns the current value of the cycle timer (in ticks)288 *289 * @return the current value of the cycle timer (in ticks)290 */291 292 unsigned int IsoHandler::getCycleTimerTicks() {293 // the new api should be realtime safe.294 // it might cause a reschedule when turning preemption,295 // back on but that won't hurt us if we have sufficient296 // priority297 int err;298 uint32_t cycle_timer;299 uint64_t local_time;300 err=raw1394_read_cycle_timer(m_handle_util, &cycle_timer, &local_time);301 if(err) {302 debugWarning("raw1394_read_cycle_timer: %s\n", strerror(err));303 }304 return CYCLE_TIMER_TO_TICKS(cycle_timer);305 }306 307 /**308 * Returns the current value of the cycle timer (as is)309 *310 * @return the current value of the cycle timer (as is)311 */312 313 unsigned int IsoHandler::getCycleTimer() {314 // the new api should be realtime safe.315 // it might cause a reschedule when turning preemption,316 // back on but that won't hurt us if we have sufficient317 // priority318 int err;319 uint32_t cycle_timer;320 uint64_t local_time;321 err=raw1394_read_cycle_timer(m_handle_util, &cycle_timer, &local_time);322 if(err) {323 debugWarning("raw1394_read_cycle_timer: %s\n", strerror(err));324 }325 return cycle_timer;326 }327 328 278 void IsoHandler::dumpInfo() 329 279 { 330 331 280 int channel=-1; 332 281 if (m_Client) channel=m_Client->getChannel(); trunk/libffado/src/libstreaming/util/IsoHandler.h
r747 r748 95 95 int getLocalNodeId() {return raw1394_get_local_id( m_handle );}; 96 96 int getPort() {return m_port;}; 97 98 /// get the most recent cycle timer value (in ticks)99 unsigned int getCycleTimerTicks();100 /// get the most recent cycle timer value (as is)101 unsigned int getCycleTimer();102 97 103 98 protected: trunk/libffado/src/libutil/TimestampedBuffer.cpp
r742 r748 23 23 24 24 #include "libutil/Atomic.h" 25 #include "lib streaming/util/cycletimer.h"25 #include "libieee1394/cycletimer.h" 26 26 27 27 #include "TimestampedBuffer.h" trunk/libffado/src/motu/motu_avdevice.cpp
r742 r748 519 519 } 520 520 521 m_receiveProcessor=new Streaming::MotuReceiveStreamProcessor( 522 get1394Service().getPort(), event_size_in); 521 m_receiveProcessor=new Streaming::MotuReceiveStreamProcessor(*this, event_size_in); 523 522 524 523 // The first thing is to initialize the processor. This creates the … … 589 588 590 589 // Do the same for the transmit processor 591 m_transmitProcessor=new Streaming::MotuTransmitStreamProcessor( 592 get1394Service().getPort(), event_size_out); 590 m_transmitProcessor=new Streaming::MotuTransmitStreamProcessor(*this, event_size_out); 593 591 594 592 m_transmitProcessor->setVerboseLevel(getDebugLevel()); trunk/libffado/tests/test-timestampedbuffer.cpp
r742 r748 37 37 #include <netinet/in.h> 38 38 39 #include "src/lib streaming/util/cycletimer.h"39 #include "src/libieee1394/cycletimer.h" 40 40 41 41 #include "src/libutil/TimestampedBuffer.h"