Changeset 495
- Timestamp:
- 07/24/07 17:29:22 (16 years ago)
- Files:
-
- trunk/libffado/src/libstreaming/MotuStreamProcessor.cpp (modified) (3 diffs)
- trunk/libffado/src/libutil/TimestampedBuffer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/MotuStreamProcessor.cpp
r494 r495 239 239 int64_t timestamp = ts_head; 240 240 241 //debugOutput(DEBUG_LEVEL_VERBOSE,"tx cycle %d, base timestamp %lld\n",cycle, ts_head); 241 242 #if 0 242 243 if (cycle<10000) { … … 1156 1157 // to stop these warnings most of the time and allow for a 1157 1158 // smoother startup. 1158 m_data_buffer->setBufferTailTimestamp(ts); 1159 // m_data_buffer->setBufferTailTimestamp(m_last_timestamp); 1159 // On second thoughts, perhaps it doesn't help much after all. 1160 // m_data_buffer->setBufferTailTimestamp(ts); 1161 m_data_buffer->setBufferTailTimestamp(m_last_timestamp); 1160 1162 //debugOutput(DEBUG_LEVEL_VERBOSE,"%p, last ts=%lld, ts=%lld, lts2=%lld\n", m_data_buffer, m_last_timestamp, ts, m_last_timestamp2); 1161 1163 … … 1164 1166 1165 1167 debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "put packet...\n"); 1166 //debugOutput(DEBUG_LEVEL_VERBOSE," cycle=%d, mp=%d, last ts=%lld, ts2=%lld\n",cycle,m_period, m_last_timestamp, m_last_timestamp2);1168 //debugOutput(DEBUG_LEVEL_VERBOSE,"rx cycle=%d, last ts=%lld\n",cycle, m_last_timestamp); 1167 1169 1168 1170 //=> process the packet trunk/libffado/src/libutil/TimestampedBuffer.cpp
r494 r495 204 204 bool TimestampedBuffer::setTickOffset(ffado_timestamp_t nticks) { 205 205 debugOutput(DEBUG_LEVEL_VERBOSE,"Setting ticks offset to "TIMESTAMP_FORMAT_SPEC"\n",nticks); 206 207 // JMW: I think we need to update the internal DLL state to take account 208 // of the new offset. Doing so certainly makes for a smoother MOTU 209 // startup. 210 pthread_mutex_lock(&m_framecounter_lock); 211 m_buffer_tail_timestamp = m_buffer_tail_timestamp - m_tick_offset + nticks; 212 m_buffer_next_tail_timestamp = (ffado_timestamp_t)((float)m_buffer_tail_timestamp + m_dll_e2); 206 213 m_tick_offset=nticks; 214 pthread_mutex_unlock(&m_framecounter_lock); 215 207 216 return true; 208 217 }