Show
Ignore:
Timestamp:
03/08/12 05:27:34 (12 years ago)
Author:
jwoithe
Message:

Maybe improve streaming restart reliability by ensuring IsoHandler? fields are reset during enable. Move RME run/dryrun flags into transmit streaming object so they can be reset. Add new device method resetForStreaming() which is called just before streaming is started; devices can use this to initialise streaming related details. RME uses new resetForStreaming() method to ensure the run/dryrun transmit stream flags are set up correctly. Despite these changes, attempts to make the RME driver restart after jack freewheels have been unsuccessful so far.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/IsoHandlerManager.cpp

    r2019 r2074  
    17661766    raw1394_set_userdata(m_handle, static_cast<void *>(this)); 
    17671767 
     1768#ifdef DEBUG 
     1769    m_min_ahead = 7999; 
     1770#endif 
     1771 
     1772    m_packets = 0; 
     1773 
     1774    // indicate that the first iterate() still has to occur. 
     1775    m_last_now = 0xFFFFFFFF; 
     1776    m_last_packet_handled_at = 0xFFFFFFFF; 
     1777 
     1778    m_last_cycle = -1; 
     1779 
     1780 
    17681781    // prepare the handler, allocate the resources 
    17691782    debugOutput( DEBUG_LEVEL_VERBOSE, "Preparing iso handler (%p, client=%p)\n", this, m_Client); 
     
    18051818        } 
    18061819    } 
    1807  
    1808 #ifdef DEBUG 
    1809     m_min_ahead = 7999; 
    1810 #endif 
    1811  
    1812     m_packets = 0; 
    1813  
    1814     // indicate that the first iterate() still has to occur. 
    1815     m_last_now = 0xFFFFFFFF; 
    1816     m_last_packet_handled_at = 0xFFFFFFFF; 
    18171820 
    18181821    m_State = eHS_Running;