Changeset 481
- Timestamp:
- 06/12/07 16:41:42 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/MotuStreamProcessor.cpp
r480 r481 134 134 int cycle_diff = diffCycles(cycle, now_cycles); 135 135 136 //debugOutput(DEBUG_LEVEL_VERBOSE,"tx: enabled=%d, cycle=%d, now_cycles=%d, diff=%d\n", 137 // !m_is_disabled,cycle, now_cycles, cycle_diff); 138 136 139 // Signal that streaming is still active 137 140 m_streaming_active = 1; … … 148 151 if (!m_disabled && m_is_disabled) { 149 152 // this means that we are trying to enable 150 if ((unsigned int)cycle == m_cycle_to_enable_at) { 153 154 // check if we are on or past the enable point 155 signed int cycles_past_enable=diffCycles(cycle, m_cycle_to_enable_at); 156 157 if (cycles_past_enable >= 0) { 151 158 m_is_disabled=false; 152 159 … … 180 187 ts_head, sync_lag_cycles, m_data_buffer->getFrameCounter()); 181 188 } else { 189 static int foo=0; 190 if (!foo) { 191 debugOutput(DEBUG_LEVEL_VERBOSE, 192 "will enable tx StreamProcessor %p at %u, now is %d\n", 193 this, m_cycle_to_enable_at, cycle); 194 foo=1; 195 } 182 196 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, 183 197 "will enable StreamProcessor %p at %u, now is %d\n", … … 314 328 ts_frame += (unsigned int)((float)i * ticks_per_frame); 315 329 *quadlet = htonl( TICKS_TO_CYCLE_TIMER(ts_frame) & 0x1ffffff); 330 #if 0 316 331 if (cycle==0) { 317 332 debugOutput(DEBUG_LEVEL_VERBOSE,"%d %d %d\n", … … 320 335 TICKS_TO_OFFSET(ts_frame)); 321 336 } 337 #endif 322 338 #if TESTTONE 323 339 // FIXME: remove this hacked in 1 kHz test signal to … … 956 972 m_last_cycle=cycle; 957 973 974 //debugOutput(DEBUG_LEVEL_VERBOSE,"rx: enabled=%d, cycle=%d\n",!m_is_disabled,cycle); 975 958 976 // check our enable status 959 977 if (!m_disabled && m_is_disabled) { … … 975 993 976 994 } else { 995 static int foo=0; 996 if (!foo) { 997 debugOutput(DEBUG_LEVEL_VERBOSE, 998 "will enable rx StreamProcessor %p at %u, now is %d\n", 999 this, m_cycle_to_enable_at, cycle); 1000 foo=1; 1001 } 977 1002 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, 978 1003 "will enable StreamProcessor %p at %u, now is %d\n",