Changeset 1485

Show
Ignore:
Timestamp:
11/25/08 02:11:13 (12 years ago)
Author:
jwoithe
Message:

MOTU: fix a long-standing typo bug which tripped things up with the new port cache. Clearly the port mode isn't checked all that often, or this would never have worked.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/motu/motu_avdevice.cpp

    r1484 r1485  
    13981398    asprintf(&buff,"%s_pbk_MIDI0",id.c_str()); 
    13991399    p = new Streaming::MotuMidiPort(*m_transmitProcessor, buff, 
    1400         Streaming::Port::E_Capture, 4); 
     1400        Streaming::Port::E_Playback, 4); 
    14011401    if (!p) { 
    14021402        debugOutput(DEBUG_LEVEL_VERBOSE, "Skipped port %s\n", buff); 
     
    16501650    if (!p) { 
    16511651        debugOutput(DEBUG_LEVEL_VERBOSE, "Skipped port %s\n",name); 
    1652     } else { 
    1653         /* All ports created are enabled, more or less by definition.  If 
    1654          * we don't need a port due to sample rate or device configuration 
    1655          * we don't currently create it.  This may change. 
    1656          */ 
    1657         p->enable(); 
    16581652    } 
    16591653    free(name);