Changeset 3904

Show
Ignore:
Timestamp:
02/10/10 09:15:06 (4 years ago)
Author:
sletz
Message:

ffado-portaliases patch, fix ticket #156

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jack2/trunk/jackmp/linux/firewire/JackFFADODriver.cpp

    r3903 r3904  
    448448            port = fGraphManager->GetPort(port_index); 
    449449            port->SetLatency(driver->period_size + driver->capture_frame_latency); 
     450            // capture port aliases (jackd1 style port names) 
     451            snprintf(buf, sizeof(buf) - 1, "%s:capture_%i", fClientControl.fName, (int) chn + 1); 
     452            port->SetAlias(buf); 
    450453            fCapturePortList[chn] = port_index; 
    451454            jack_log("JackFFADODriver::Attach fCapturePortList[i] %ld ", port_index); 
     
    521524            // Add one buffer more latency if "async" mode is used... 
    522525            port->SetLatency((driver->period_size * (driver->device_options.nb_buffers - 1)) + ((fEngineControl->fSyncMode) ? 0 : fEngineControl->fBufferSize) + driver->playback_frame_latency); 
     526            // playback port aliases (jackd1 style port names) 
     527            snprintf(buf, sizeof(buf) - 1, "%s:playback_%i", fClientControl.fName, (int) chn + 1); 
     528            port->SetAlias(buf); 
    523529            fPlaybackPortList[chn] = port_index; 
    524530            jack_log("JackFFADODriver::Attach fPlaybackPortList[i] %ld ", port_index);